I'm trying to make it work with dotjs like the swig example
<h1>{{ __("Welcome to:") }}</h1>
Dot.js uses {{=it.object}} for rendering variables, so {{=it.__("Welcome to:") }} or {{__("Welcome to:") }} does not work.
Should I pass the entire i18n object to the template in express and render like this:?
I'm trying to make it work with dotjs like the swig example
Dot.js uses
{{=it.object}}
for rendering variables, so{{=it.__("Welcome to:") }}
or{{__("Welcome to:") }}
does not work. Should I pass the entire i18n object to the template in express and render like this:?