Skip to content

Tags: voxpelli/node-tema

Tags

v0.3.1

Toggle v0.3.1's commit message
0.3.1

v0.3.0

Toggle v0.3.0's commit message
0.3.0

0.2.4

Toggle 0.2.4's commit message

0.2.3

Toggle 0.2.3's commit message
Release 0.2.3

* **main:** a cache get was mistakenly a set ([e4e1cc3](http://github.com/voxpelli/node-tema/commit/e4e1cc3c8afc57472f3dacf2dc2fc5c0ec1f528c))

* **main:** enable themes to do init themselves ([a234fc4](http://github.com/voxpelli/node-tema/commit/a234fc4bf890333d84ce8cb1c35f99424cf3f789))

v0.2.1

Toggle v0.2.1's commit message
Hotfix: Ensure template lookup matches full filename

All changes:

* Bugfix: New lookup system for template files could sometimes match against just part of the filename – now ensures that full filename matches
* Tweaked: Error message for template not found now includes name of template

v0.2.0

Toggle v0.2.0's commit message
Many tweaks and general cleaning up

Highlights of changes:

* New: Added new methods `getThemeInstance()` and `getLocals()`
* Tweaked: Changed the structure of values sent to preprocess methods.
* Tweaked: Reworked the lookup system for template files and added a cache to reduce file IO (off by default)
* Tweaked: Preprocess methods are now run in the context of the Tema instance and can thus eg. access locals by calling `this.getLocals()`
* Tweaked: A deep clone of all variables are now made before they are sent into preprocess methods etc – to avoid leaks of changes reaching outside of the specific rendering.
* Tweaked: Boolean values has gained special treatme as wellnt in the `block()` method and will not be appended to an array but replace the current value of the specified block.
* Tweaked: Instead of resolving parent theme properties to the actual source themes, a new object with the source theme as its prototype is instead created and everything resolved to that.
* Removed: `renderPromise()` and `recursiveRendererPromise()` because `render()` and `recursiveRenderer()` already returns promises when not given a node.js callback.

v0.1.1

Toggle v0.1.1's commit message
Better documentation and tests + bug fixes

* The documentation has been improved
* The test coverage has been improved
* Travis CI has been added
* Bug fix: Theme can now be changed through temaInstance.option()
* Bug fix: If theme parents cause a circular relationship, avoid infinite loop
* Bug fix: Tests should silence the console.warn() calls

v0.1.0

Toggle v0.1.0's commit message
Initial release