Add simple templating with pug

This commit is contained in:
Tom Raithel
2017-01-22 22:29:02 +01:00
parent bd6e4ebc1c
commit 0dde930d64
7 changed files with 41 additions and 38 deletions

19
templates/item.pug Normal file
View File

@@ -0,0 +1,19 @@
extends layout.pug
block content
a(href='/' + quadrant + '.html') #{quadrant}
h1 #{attributes.title}
= ' '
small #{attributes.ring}
hr
section
!= revisions[0].body
hr
ul
each revision, index in revisions
if index > 0
li
= revision.version
!= revision.body