minstache icon indicating copy to clipboard operation
minstache copied to clipboard

Mini mustache compiling to stand-alone functions

Results 13 minstache issues
Sort by recently updated
recently updated
newest added

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 ![image](https://cloud.githubusercontent.com/assets/4262050/14799012/fd7cc0d2-0aff-11e6-9a31-78fd45f828a4.png) 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)