cieciak.dev - Projects

This is a short doc of my website engine
This WILL change in some places!

Page structure

Page structure is defined in .json file. This file has two main sections: "vars" - handling all immediate values, and "blocks" - containing blocks that need to be rendered

Here is an example file:

{
 "vars": {
  "page-title": "Example"
  "page-template": "raw.html"
  ...
 },
 "blocks": {
  "navbar": ...
  "page-elements": ...
 }
}

Page templates

Page templates are structures on which engine builds your pages. They are normal .html files, with special tags in them.

  • Template variables

    This tag will get filled by variable value, provided by: template, server, database

    You define it using: { variable-name }

  • Template blocks

    This tag will get filled by HTLM block, provided by: template, server, database

    You define it using: {% block-name %}