Skip to content

v1.1.1

Latest
Compare
Choose a tag to compare
@RyanLiu0235 RyanLiu0235 released this 13 Feb 08:48
· 2 commits to master since this release

Features:

  • Function body can be cached with config cache set to true. This feature is only available on server side render and with same dirname of template passed to compileFile.
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)
})