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

Latest commit

 

History

History
22 lines (18 loc) · 1.06 KB

File metadata and controls

22 lines (18 loc) · 1.06 KB

Deprecation note: Elements has evolved – check out the Colony processor for even simpler templates!

Elements

A template processor written in JavaScript. For a showcase see the contents of example. Learn more in the Wiki.

Getting started

Import elements.min.js into your project. This can be done using a <script> tag in your documents <head>:

<script src="elements.min.js"></script>

Note that rendering templates can be especially useful in a ServiceWorker. Import the script there using:

self.importScripts('elements.min.js');

Now you are ready to make use of the renderer. Head over to the Wiki for a complete documentation.

Links