Usage from within an application
Templates are always part of a Collection in a Domain, i.e. the Domain and default Collection instances are always created, be it explicitly or implicitly. The preferred way to load/retrieve a Template is via a Domain instance (if necessary this implicitly creates a default Collection instance):
It may sometimes be more convenient to instantiate directly (if necessary this implicitly creates both Domain and default Collection instances):
Evoque is conceived with safety and security in mind. Under no circumstances, for example, is it ever possible to evoque a template from a file that is not within a declared collection. Given that there is no special distinction between templates and content, template collection root directories are treated in the same way that a web server treats its document-root.
Other notes
Given a template instance, you can always get the associated
collection and domain with:
To create the (default) collection first, thus having an opportunity to name it explicitly, you do:
Del.icio.us