Site structure

 

Site structure

A templer site consists of at least three things:

A top-level configuration file.

This is always the configuration file named ./templer.cfg, you cannot rename this, or specify an alternative.

A directory containing layouts.

By default layout templates are loaded from ./layouts, and unless a page references another layout then the file default.layout will be loaded.

The default layout name may be changed in the configuration file mentioned above.

A series of input pages

These are your pages of content. By default these come from ./input, but this may be changed in the global configuration file.

Example Structure

This site was built via the following structure:

├── input/
│   ├── dark.css
│   ├── file.wgn
│   ├── index.wgn
│   ├── jquery.min.js
│   ├── sidebar.inc
│   ├── structure.wgn
│   ├── ..
│   ├── ..
│   ├── stylesheet.wgn
│   └── variables.wgn
├── layouts/
│   └── default.layout
├── output/
└── templer.cfg

Here the "*.wgn" files are the pages to be processed, and the output/ directory is where our content will be generated and stored.


Show the source of this page.