Releases: RyanLiu0235/leopard
Releases · RyanLiu0235/leopard
v1.1.1
Features:
- Function body can be cached with config
cache
set totrue
. This feature is only available on server side render and with same dirname of template passed tocompileFile
.
var leo = new Leopard({ cache: true })
leo.compileFile('./test.tpl', data, function() {
// now Function body of `test.tpl` has been cached, and could be faster.
leo.compileFile('./test.tpl', data, callback)
})
v1.1.0
Features:
compileFile
is now available in server-side version. Yes, we build two versions of leopard, and we'll load server-side version by default.
v1.0.0
Breaking Changes:
Leopard
is now a constructor, and should be initialized withnew
.- Filters are now supported in interpolations using
|
. - And also, you can now customize a filter using
Leopard.filter(filter, handler)
.
v0.0.1
Features:
- Conditions, loops and interpolations.