Browse Source

Setting up template layout system

master
Mobius K 3 years ago
parent
commit
9bddbed52b
  1. 5
      src/routes/index.pug
  2. 29
      src/templates/layout.pug

5
src/routes/index.pug

@ -1 +1,4 @@
p Hello, world!
extends ../templates/layout
block content
h1 Home page

29
src/templates/layout.pug

@ -0,0 +1,29 @@
doctype html
html(lang="en")
head
meta(charset="utf-8")
meta(name="viewport", content="width=device-width, initial-scale=1, shrink-to-fit=no")
meta(name="description", content="Builder for hcitool class codes")
title Bluetooth Class
link(rel="stylesheet", href="/index.css")
body
header
noscript This application requires JavaScript to run!
main
block content
footer
h2
span Built by
a(href="https://mobiusk.com") MobiusK
block scripts
script(src="/index.js")
Loading…
Cancel
Save