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

Configuration

Lukas Jans edited this page May 8, 2019 · 2 revisions

It is possible to change the renderer settings using static class properties:

Elements[key] = value;

Currently the following settings are possible:

Name Description Default
open Tag opening delimiter {{
close Tag closing delimiter }}

You can also construct an instance of Elements with a configuration object:

const instance = new Elements({
	open: '((',
	close: '))',
});

instance.render('Hello ((name))', {name: 'Alice'});

Hello Alice

Clone this wiki locally