Skip to content

Templates

A template is the web page a sign renders: an index.html with its CSS and assets, packaged as a ZIP. Templates live in the template library and are assigned to an event, a room or a single item (see How templates are assigned). A template binds to the schedule with HTML attributes — data-field, data-condition, data-attribute — so the same design serves every room.

There are three ways to get a template:

  • Without code

    Point the upload dialog at a web page URL or an HLS stream, or upload a single image or video, and Onlit generates the template. Livestream and web page templates

  • Build your own

    Start from the base template and bind your design to the schedule data. Getting started with templates

  • Edit in the app

    Open any template in the Template Editor, preview it with real event data, check its binding attributes, and let the analysis report point out problems. Template Editor and analysis

Reading order

  1. Template library — uploading, what the upload checks, versions, usage, renaming and deleting; the findings are explained on What the static analysis checks.
  2. Getting started with templates — the base template, the file layout, the rules every template follows; then Testing and troubleshooting templates.
  3. Data binding — Displaying JSON values · Binding attributes with data-attribute · Data binding reference · Template data fields · Time formatting
  4. Layout and media — Background and banner images · Fonts · Embedding video · Embedding an HLS livestream
  5. Schedule containers — Upcoming items container · Show tomorrow's schedule in the last gap · Daily schedule container · Event scoped templates
  6. JavaScript — Template JavaScript best practices · JavaScript patterns and pitfalls · JavaScript rules and upload validation · Time-based layout override · Looping templates
  7. Example templates — every downloadable ZIP, with what it shows.