Rendering pages with Twig

Superdesk Publisher uses Twig templating engine to render website HTML. Twig is modern, flexible, extensible and secure templating system, and has great documentation, as well as active support community at Stack Overflow.

This is how Twig code looks like:

{% for user in users %}
* {{ }}
{% else %}
   No users have been found.
{% endfor %}

If you are creating completely new theme for your Publisher project, or going to modify some of the existing demo themes, you can follow this handy guide.

Generally, if starting from scratch, we advize you to develop your HTML/CSS/JS first with some dummy content, and once it’s ready, you can proceed with translating this markup into twig templates.

We have developed three demo themes which can serve as a refference for quick start (more about it here)