Variables are in the form #{{variable.subvariable}}
.
There are 3 types of varibles:
Local varibales are stored in your locales directory.
Let's assume that you have an index.html
file in the pages directory that looks like this:
<h1>#{{cool.title}}</h1>
<h2>#{{description}}</h2>
And the files in your locales directory look like this:
{
"description": "Your description",
"cool": {
"title": "Your title"
}
}
Global variables determine variables shared across all the pages.
<?php
return [
"#{{CustomVariable}}" => "Hello World!"
];
?>
Framework variables are a special type of variables, here's a list of them:
"#{{PAGE_CONTENTS}}
: The contents of the page, must be in thetemplate.html
file;"#{{CURRENT_LANGUAGE}}
: The current language of the page;#{{CURRENT_PAGE}}
: The current page name (i.e. "pagename.html" => "pagename");"#{{CURRENT_PAGE_NO_INDEX}}
: Same as#{{CURRENT_PAGE}}
but "index" is removed.