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)
})