micromustache
Advanced tools
Changelog
8.0.0
dist/micromustache.js
v8=dist/micromustache.cjs
. If you just use require('micromustache')
it should work without any change.depth
option is addedscope
could be a function
as well, but with this release we only accept Object
.render('{{str[0]}}', { str: 'Hello' })
will not return 'H'
anymore)Changelog
7.0.0
Changelog
6.0.0
.renderFn()
to do that. There's still the get()
utility function to help do the lookup.obj['foo']
(previously only obj.foo
worked like Mustache and handlebars).renderFnAsync()
)view
is not called scope
.compile()
in version 5, it returned a function but since version 6, it returns an object that has a render()
function.get()
functionality but v6 just throws that error in an effort to make debugging easier.const render = require('micromustache/render')
should be refactored to const { render } = require('micromustache')