Releases: zordius/lightncandy
Releases · zordius/lightncandy
V0.12 2014-05-16
- align with handlebars.js 2.0.0-alpha.2
- 64db34c support
{{@first}}
and{{@last}}
- bfa1fbe add new flag FLAG_SPVARS
- 10a4623 remove json schema support
- 240d9fa only export used LCRun2 functions when compile() with FLAG_STANDALONE now
- 3fa897c rename LCRun2 to LCRun3 for interface changed, old none standalone templates will error with newer version
- e0838c7 now can output debug template map with ANSI color
- 80dbeab fix php warning when compile with custom helper or block custom helper
- 8ce6268 support Handlebars.js style custom helper
V0.11 2014-04-18
- align with handlebars.js 2.0.0-alpha.2
- a275d52 use php array, remove val()
- 8834914 only export used custom helper into render function now
- eb6d82d refine option flag consts
- fc43729 refine comments for phpdoc
- fbf116c fix for tailing ; after helper functions
- f47a2d5 fix for wrong param when new Exception
- 94e71eb add isset() check for input value
- a826b8a support
{{else}}
in{{#each}}
now - 25dac11 support
{{!-- comments --}}
now (this handlebars.js extension allow}}
to be placed inside a comment) - e142b6e support
{{@root}}
or{{@root.foo.bar}}
now - 58c8d84 custom helper can return extra flag to change html encoded behavior now
V0.10 2014-03-09
- align with handlebars.js 2.0.0-alpha.1
- 4c9f681 file name changed: lightncandy.inc => lightncandy.php
- e3de010 some minor fix for json schema
- 1feec45 new variable handling logic, save variable name parsing time when render() . rendering performance improved 10~30%!
- 3fa897c rename LCRun to LCRun2 for interface changed, old none standalone templates will error with newer version
- 43a6d33 fix for
{{../}}
php warning message - 9189ebc now auto push documents from Travis CI
- e077d0b support named arguments for custom helpers
{{helper name=value}}
- 2331b6f support block custom helpers
- 4fedaa2 support number value as named arguments
- 6a91ab9 fix for default options and php warnings
- fc157fd fix for doblue quoted arguments (issue #15)
V0.9 2014-02-27
- align with handlebars.js 1.3
- a55f2dd support both
{{@index}}
and{{@key}}
when{{#each an_object}}
- e59f931 add FLAG_JSQUOTE support
- 92b3cf5 report more than 1 error when compile()
- 93cc121 test for wrong variable name format in test/error.php
- 41c1b43 support advanced variable naming
{{foo.[bar].10}}
now - 15ce1a0 add FLAG_EXTHELPER option
- f51337b support space control
{{~sometag}}
or{{sometag~}}
- fe3d678 add FLAG_SPACECTL option
- 920fbb3 support custom helper
- 07ae71a migrate into Travis CI
- ddd3335 support "some string" argument
- 20f6c88 html encode after custom helper executed
- 10a2f45 add test generator
- ccd1d3d migrate to Scrutinizer , change file name LightnCandy.inc to LightnCandy.php
- 5ac8ad8 now is a Composer package
V0.8 2014-02-10
- align with handlebars.js 1.0.12
- aaec049 fix partial in partial not works bug
- 52706cc fix for
{{#var}}
and{{^var}}
, now when var === 0 means true - 4f7f816 support
{{@key}}
and{{@index}}
in{{#each var}}
- 63aef2a prevent array_diff_key() PHP warning when
{{#each}}
on none array value - 10f3d73 add more is_array() check when
{{#each}}
and{{#var}}
- 367247b fix
{{#if}}
and{{#unless}}
when value is an empty array - c76c0bb returns null if var is not exist in a template [contributed by [email protected]]
- d18bb6d add FLAG_ECHO support
- aec2b2b fix
{{#if}}
and{{#unless}}
when value is an empty string - 8924604 fix variable output when false in an array
- e82c324 fix for ifv and ifvar logic difference
- 1e38e47 better logic on var name checking. now support
{{0}}
in the loop, but it is not handlebars.js standard
V0.7 2013-07-03
- align with handlebarsjs 1.0.11
- add HISTORY.md
- 777304c change compile format to include in val, isec, ifvar
- 55de127 support
{{../}}
in{{#each}}
- 57e90af fix parent levels detection bug
- 96bb4d7 fix bugs for
{{#.}}
and{{#this}}
- f4217d1 add ifv and unl 2 new methods for LCRun
- 3f1014c fix
{{#this}}
and{{#.}}
bug when used with{{../var}}
- cbf0b28 fix
{{#if}}
logic error when using{{../}}
- 2b20ef8 fix
{{#with}}
+{{../}}
bug - 540cd44 now support FLAG_STANDALONE
- 67ac5ff support
{{>partial}}
- 98c7bb1 detect unclosed token now
V0.6 2013-03-22
- align with handlebarsjs 1.0.11
- 45ac3b6 fix #with bug when var is false
- 1a46c2c minor #with logic fix. update document
- fdc753b fix #each and section logic for 018-hb-withwith-006
- e6cc95a add FLAG_PARENT, detect template error when scan()
- 1980691 make new LCRun::val() method to normal path.val logic
- 110d24f
{{#if path.var}}
bug fixed - d6ae2e6 fix
{{#with path.val}}
when input value is null - 71cf074 fix for 020-hb-doteach testcase