Skip to main content

Introduction

Flexibility and dynamism

Apparound workspace pages are based on “templates”, i.e. JSON files that define the structure of the page and contain “placeholders” intended to be dynamically filled with data provided by the application.

Unlike pages directly embedded within the application code — where markup, logic, and data access end up being handled in a “rigid” way — the use of templates enables flexibility, dynamism, and customization, thanks to the separation between data stored in the database, their use in application logic, and their presentation on the interface.

How the template works

A template represents the page structure through a JSON file. By defining the structure through templates and assembling the available components in a customized way, it is possible to create pages that display the desired data and provide the most suitable graphical structure for representing information.

Within the Apparound platform, there is a section (Dev Portal – Workspaces – Template manager) where templates can be created and modified for the various workspace pages. Once the structure of the various pages has been created through templates, the template engine within the browser renders it to produce what will be visible on the interface.

Template engine

The template engine is a new way of building pages by using internal/external components through a configuration JSON created in Dev Portal – Workspaces – Template Manager.

The Template Manager page represents a list of templates already created on the tenant, along with the available CRUD actions. In Edit / Create mode, you will find yourself in the Template Maker section.