This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
templates
Klaus Mueller edited this page Jan 19, 2019
·
10 revisions
drfrederson is using mustache, it is logic-less in a religious way, but you can use mustache in JavaScript on your client.(TODO;)
There are three bundle of data in the template:
-
source with raw content (e.g markdown), file modificationtime
{{source.modificationtime}}
and pathinfo from your sourcefile - meta with all nested configuration from source directories and your page
- content contains all html, structured in areas, according wai-aria landmarks. Area sourcefiles are defined in config, only the area 'main' is the page prose itself.
For additional html in head or body (trackingscripts e.g.) you have the areas ''additionalhead'' and ''additionalbody''.
Out of box there is only one example template: template/plain.html
with no CSS framework (bootstrap etc.) in it.
Its using external CDN jsdelivr.com.
Fel free to change plain.html
or add your own .
For webedit you must add the HTML metatag dcterms.source (referenced from whatwg.org MetaExtensions ) with the path to source (e.g. markdown) source.websourcepath
.
<link rel="schema.dcterms" href="http://purl.org/dc/terms/">
<meta name="dcterms.source" content=""/>