mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 14:54:05 -06:00
vault backup: 2022-09-21 13:09:30
This commit is contained in:
parent
f359dba0b3
commit
94ac98d536
28
content/notes/11-mvc-model.md
Normal file
28
content/notes/11-mvc-model.md
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
title: "11-mvc-model"
|
||||
aliases:
|
||||
tags:
|
||||
- cosc203
|
||||
- lecture
|
||||
---
|
||||
|
||||

|
||||
|
||||
# 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")
|
||||
```
|
||||
Loading…
Reference in New Issue
Block a user