giddotTop

Minimal PHP templates engine.

RequirementsTop

RoutesTop

Routes are defined in __INC__/routes.inc.php.

ViewsTop

Views are in __VIEW__. Filename must be (classname).class.php. Abstract classes should have the name (classname).aclass.php.

TemplatesTop

Templates are in __TPL__. Filename must be (templatename).php. Fragments, i.e. files included by templates, should have the name (name).inc.php.

CacheTop

Giddot has a simple caching mechanism, see __LIB__/gcache.class.php for more. The ./cache directory must be writeable. To enable it set $GIDDOT_CONFIG['cache'] to true.

If concatenation of CSS and JS files is enabled, also the ./tmp directory must be writeable. To enable it set $GIDDOT_CONFIG['concat_scripts']and $GIDDOT_CONFIG['concat_styles'] to true.

To force recreation of the cached files, including concatenated scripts, append cache=no to the URL.