Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Advanced

Lukas Jans edited this page Feb 21, 2019 · 1 revision

You have learned the basics about rendering so far. Now it's time to take a deeper look at some features.

Tipp: It can be very useful to outsource a template or even data in an extra file. In the example below, a template is rendered using a localization file:

const template = await fetch('template.html').then(response => response.text());
const language = await fetch('en-US.json').then(response => response.json());

const result = Elements.render(template, language);
Clone this wiki locally