Templates

When presenting information to users, Sundial uses templates. Templates are predesigned guides used for specific purposes, consisting of static and dynamic elements, as well as formatting information which specifies where elements are placed.

Templates may be stored within Sundial or at locations specified by URIs that are accessible to Sundial.

Information is dynamically included or excluded from templates using template variables. When a template of specific function is retrieved for use in a given situation, Sundial's template engine interprets the template, replaces template variables with their appropriate values, modifies the template's output as per the behavior of template variables, and returns the resultant information.

It is important to note that the template may contain non-formatted textual information, html, xml, etc. Sundial makes no attempt to interpret or validate templates or the information returned. It simply replaces recognized template variables with their corresponding values. It is the responsibility of the application / web page making a request to the calendar to interpret or display the calendar's output.

Tags: