Snippets of code that get executed when a JSAP file is parsed
<body>
${
let x = Math.sqrt(3.14159265);
return `sqrt of pi is ${x}`;
}
</body>
Snippets that return themself
<body>
={
`now is ${new Date()}`;
}
</body>
JSAP equevelant to yaml front-matter; It provides specific configuration options for the page (must be first line of the file)
%{
"isolate": true,
"error": "404.jsap",
"cool": "yes",
"more settings": 10000
}
Configuration files for directories (webserver only, not parser)
{
"hidden": true,
"permalink": "different/path",
"auth": {
"username": "beep beep",
"password": "lettuce"
}
}
Include other JSAP or html files
<body>
+"headershiz.html" <!-- include headershiz.html to the file-->
</body>
Gets removed by the parser, never makes it to the web
-{
This comment will never show up to the client
}-
Forwards the client to another page
Gets the parsed front matter