diff --git a/content/notes/11-mvc-model.md b/content/notes/11-mvc-model.md new file mode 100644 index 000000000..4356c683a --- /dev/null +++ b/content/notes/11-mvc-model.md @@ -0,0 +1,28 @@ +--- +title: "11-mvc-model" +aliases: +tags: +- cosc203 +- lecture +--- + +![mvc model diagram|400](https://i.imgur.com/Ini1bwk.png) + +# view templates +## pug +pug is a view engine. +``` js +app.set('views', path.join(__dirname, 'views')) +app.set('view engine', 'pug') +``` + +a pug file +- defines an html template + +e.g., +``` pug +doctype html +head + title mytitle + script(type="text/javascript") +``` \ No newline at end of file