文件结构
其实文件结构啥的是为了业务逻辑更加清晰
index是主页面,从default继承.
default里面也include了includes文件里的内容,一个是css样式link,一个是js的源文件script
index.pug
extends ./layouts/default
block title
title Koa douban 首页
block content
.container
.row
.col-md-8
h1 hi #{
you}
p this is #{
me}
.col-md-4
p 测试动态 pug 模板引擎
default.pug
doctype html
html
head
meta(