DoT.js website, shows template data binding or interpolation as
{{= it.modelFieldName }}
Angular 2+ shows
{{modelFieldName}}
Aside from a string replacement before we use the template, how can Dot.js use {{modelFieldName}}, removing the = it. and still work?
Reason: I would like to have a single directive for template creation for our non-programmer designers. Designers use Adobe Illustrator to create templates, convert with InkScape to SVG, then programmers reference the external SVG templates in their template framework of choice (some use Knockout.js with Dot and some use Angular 2+.)
The name of this configuration is
delimiters.Try customizing your
dotas follows:Source: http://olado.github.io/doT/index.html