Skip to content

Releases: RyanLiu0235/leopard

v1.1.1

13 Feb 08:48
Compare
Choose a tag to compare

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

v1.1.0

12 Feb 09:09
Compare
Choose a tag to compare

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

09 Feb 10:48
Compare
Choose a tag to compare

Breaking Changes:

  • Leopard is now a constructor, and should be initialized with new.
  • Filters are now supported in interpolations using |.
  • And also, you can now customize a filter using Leopard.filter(filter, handler).

v0.0.1

09 Feb 04:51
Compare
Choose a tag to compare

Features:

  • Conditions, loops and interpolations.