Installation
Quick Take
Supported templating languages:
- Nunjucks/Jinja/Liquid family
- JSP (Java Server Pages)
API — detectLang()
The main function detectLang()
is imported like this:
It’s a function which takes one input argument:
For example, returned plain object can look like:
{
name: "Nunjucks";
}
If templating language is not detected, a null
is set:
{
name: null;
}
API — version
You can import version
: