Skip to content

Releases: RyanLiu0235/leopard

v1.1.1

Choose a tag to compare

@RyanLiu0235 RyanLiu0235 released this 13 Feb 08:48

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

Choose a tag to compare

@RyanLiu0235 RyanLiu0235 released this 12 Feb 09:09

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

Choose a tag to compare

@RyanLiu0235 RyanLiu0235 released this 09 Feb 10:48

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

Choose a tag to compare

@RyanLiu0235 RyanLiu0235 released this 09 Feb 04:51

Features:

  • Conditions, loops and interpolations.