Closed go-oleg closed 8 years ago
While working on https://github.com/juttle/atom-juttle-viewer/pull/1, ran into the problem that atom doesn't allow usage of _.template (see discussion). We use _.template to generate runtime messages and parameter validation error messages.
_.template
We don't need everything that _.template offers, just basic string templating, so switch to https://www.npmjs.com/package/string-template.
Changes necessary to make this work
{{
}}
string-template
{
}
info
@mnibecker
+1
While working on https://github.com/juttle/atom-juttle-viewer/pull/1, ran into the problem that atom doesn't allow usage of
_.template
(see discussion). We use_.template
to generate runtime messages and parameter validation error messages.We don't need everything that
_.template
offers, just basic string templating, so switch to https://www.npmjs.com/package/string-template.Changes necessary to make this work
{{
and}}
as the delimiter tostring-template
's{
and}
.info
nesting in param validation messages.string-template
doesn't support nesting and its also just not necessary here.@mnibecker