Templates are written using Jade for any page type or Markdown for static pages.
Jade example:
h1 Title
p Content.
Markdown example:
# Title
Content.
You do not need a Jade template if your page only uses Markdown.
!= app.markdown(page.markdown)
The above Jade template allows you to render your markdown code and apply additional formatting around it.
Every Jade template has access to the app
variable. Page templates can additionally access their own page data via the page
variable.
The app.markdown
function expects the markdown code as the first parameter and returns the rendered HTML. For details check out remarkable.