Dijon Platform uses the popular Twig template system to layout HTML and features on the pages. Each site should follow the recommended template structure to maintain consistent design across the sites. The documentation for Twig templates are here, however you do not need to be an expert on Twig templates to use Dijon Platform. The two main pieces of Twig functionality that users of Dijon should familiarise themselves with, are:

  • Extending and including templates
    Twig allows templates to re-use other templates through either extending 'base templates' or including other templates, within another template.
  • Functions
    Twig allows you to define functions in PHP that can be called from within the Twig template. Dijon uses these functions to inject content and provide contextual information.