minstache
minstache copied to clipboard
Mini mustache compiling to stand-alone functions
With the rise in supply chain attacks and OSS dependencies being used as a attack vector, Microsoft is working with our ecosystem partners, such as the Linux Foundation's OpenSSF, to...
i've found a error when trying to compile a template with windows line endings  this PR fix the issue
As discovered in #14, we are being inconsistent with inverted sections and arrays. In this PR: - Add tests against inverted sections and arrays - Add support for considering empty...
Hi, I am packaging this in Fedora Linux and we have packaging policy to include license text also. Can you please commit this pull request and release new tarball in...
There is a divergence from the `mustache` spec for inverted sections with respect to empty arrays. `minstache` seems to be handling them as an iterator, not as an inverted section...
https://github.com/visionmedia/minstache/issues/12 Tests are passed.
I think we do not need strong array check at function: ``` javascript function section(obj, prop, negate, thunk) { var val = obj[prop]; if (Array.isArray(val)) return val.map(thunk).join(''); if ('function' ==...
This is an updated version of #7 with a neater change set, hopefully this will be easier to accept.
as in `{{#foo.bar}}` `{{^foo.bar}}`
handle undefined on `{{var}}` and `{{!var}}` (returns an empty string)