Intro

Basically, all HTML source code generated by the Hublify platform was previously (live) rendered by the integrated template render-engine.

This render-engine is used for a lot of different purposes. 

This allows developers and users to modify and extend the Hublify Apps & Platform actually endlessly.


twig - render-engine

Hublify uses the wonderful twig render engine. It is fast and brings lots of powerful templating features.

Since the well-known & open-source “twig” render-engine is used, based on the open-source PHP framework “symfony”, there are tons of documentations, examples and big international community for that available.

Twig-templating is really easy to learn. After some minutes only you will be able to access all your Hublify-data and generate for example beautiful product-shop-pages, personalized emails, internal BI-reports and lots of more!


Seamless Hublify integration

Through a specialized twig extension for Hublify you can directly access all your data from within your and pre-build templates. Its really easy and done within minutes!

Render easily html pages, sites, email-templates and much more.

Example

Rendering a list of products is real easy!

<html>

{# Getting live the products from Hublify #}
{% set myList = hublify.dataset('product').fields(['pcode','name','price']).all %}

{# Create a html-list of products #}
<ul>
    {% for prod in myList %}
        <li>{{ prod.pcode }} - {{ prod.name }}: {{ prod.price|format_number }}</li>
    {% endfor %}
</ul>
</html>

 

Targeted audience

You should not be afraid of HTML & CSS! :) 

Everyone who knows some HTML will be able to dive into Hublify’s templating.

If you know already some programming in general with variables, arrays and functional loops – then twig-templating will be a piece of cake for you!
You can then easily modify and create beautiful html-layouts, views, pages, emails etc.

If in general, you are familiar with organizing and querying data from database you also will be able to compose best personalized and context-based (HTML-) content!

 

What HTML can be templated & rendered, at all?

Hublify itself uses twig-templates massively for rendering, for example:

  • All shop-, portal-, form-, … frontend-pages.
  • All (HTML-) emails
  • The Hublify App and widgets itself!
  • PDF documents
  • Data-Exports

The templates for all of these render-targets can be modified and extended for own projects and setups and libraries!

All of these render-targets have some specialties which are described later.