Releases: RyanLiu0235/leopard
Releases · RyanLiu0235/leopard
v1.1.1
Features:
- Function body can be cached with config
cacheset 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:
compileFileis 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:
Leopardis 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.