-
Notifications
You must be signed in to change notification settings - Fork 6
Guide: Templates
Templates are the different layouts a website has. In most cases all templates have the same theme and thus use most of the same assets. Generally a user expects only one theme for every website, and to keep the web root clean from files that are not used why mutli-theme support is made redundant.
There are three main methods you can call to display the Template() content in your template - head(), body() and foot()
This generates the content for the head tag - meta tags, links to css and more. All controllers/plugins that have a head.php view will be compiled and output through here.
The body() method generates the main content area, looping through all the data sets, gathered by the controller, while applying the view individually selected for each one.
Not to be confused with the footer tag , here is where all the script files are included.
Adding new templates is as simple as creating new files in the "html/template/" folder. They will appear automatically when you are editing a page, where you'll have the opportunity to pick a different template for every page.