| 1 |
HISTORY |
| 2 |
======= |
| 3 |
|
| 4 |
1.2.7 current master, not released |
| 5 |
* align with handlebars.js 4.1.2 |
| 6 |
|
| 7 |
1.2.6 https://github.com/zordius/lightncandy/releases/v1.2.6 |
| 8 |
* align with handlebars.js 4.1.2 |
| 9 |
* 207d424c4c fix for PHP 8.0 code generator issue |
| 10 |
|
| 11 |
1.2.5 https://github.com/zordius/lightncandy/releases/v1.2.5 |
| 12 |
* align with handlebars.js 4.1.2 |
| 13 |
* 0ae02b0131 support ArrayAccess and __call() |
| 14 |
* ade2d444c7 fix for PHP 7.4 implode() warning |
| 15 |
* c9f02aa6e4 fix for PHP 7.4 implode() warning |
| 16 |
* 096bf4c2ae remove PHP 7.1 tests (stop supporting/verifying) |
| 17 |
* c77aaa7a27 fix for PHP 7.4 warning access int as array |
| 18 |
|
| 19 |
1.2.4 https://github.com/zordius/lightncandy/releases/v1.2.4 |
| 20 |
* align with handlebars.js 4.1.1 |
| 21 |
* 67b91587f8 fix {{#if}} {{else}} {{/if}} bug when them are inside {{#*inline}}...{{/inline}} |
| 22 |
* e232e13e12 fix {{else}} compile bug when them are inside {{#*inline}}...{{/inline}} |
| 23 |
|
| 24 |
1.2.3 https://github.com/zordius/lightncandy/releases/v1.2.3 |
| 25 |
* align with handlebars.js 4.0.11 |
| 26 |
* f429712406 fix partial block standalone tag detection issue |
| 27 |
* 4f1ca85a08 fix for {{#each foo as |bar|}} when the value is not an array |
| 28 |
* ca892c4514 fix for PHP 7.2 count(null) issue and StringObject not found issue |
| 29 |
|
| 30 |
1.2.2 https://github.com/zordius/lightncandy/releases/v1.2.2 |
| 31 |
* align with handlebars.js 4.0.11 |
| 32 |
* 6ef2efd8d9 fix LightnCandy::compilePartial() error when there is `'` in the partial |
| 33 |
* 658244f864 better error message when a=b found without FLAG_NAMEDARG option |
| 34 |
* a752abd855 **BREAK CHANGE** remove FLAG_SPACECTL option because it always enabled and useless |
| 35 |
* 9615b44920 fix partial block stand alone detection issue |
| 36 |
|
| 37 |
1.2.1 https://github.com/zordius/lightncandy/releases/v1.2.1 |
| 38 |
* align with handlebars.js 4.0.10 |
| 39 |
* 15201d7300 fix `{{foo (bar "moo (1 2)")}}` parsing issue |
| 40 |
|
| 41 |
1.2.0 https://github.com/zordius/lightncandy/releases/v1.2.0 |
| 42 |
* align with handlebars.js 4.0.10 |
| 43 |
* 046de72460 reduce is_array() check when context is not changed |
| 44 |
* d217900d5b **BREAK CHANGE** |
| 45 |
* fix {{#sec}} context switch behavior for mustache.js compatibility |
| 46 |
* new `FLAG_MUSTACHESECTION` to align {{#sec}} context switch behavior with mustache.js |
| 47 |
* now `FLAG_MUSTACHE` includes `FLAG_MUSTACHESECTION` |
| 48 |
|
| 49 |
1.1.0 https://github.com/zordius/lightncandy/releases/v1.1.0 |
| 50 |
* align with handlebars.js 4.0.6 |
| 51 |
* 0557429c07 fix {{lookup . "foo"}} parsing issue |
| 52 |
* 6939eebef8 fix {{foo a=(foo a=(bar))}} parsing issue |
| 53 |
* 59eba28d8a fix error message when compile {{each foo as |bar|}} |
| 54 |
* 3164c82047 **BREAK CHANGE** block custom helper is compiled as `hbbch()` now |
| 55 |
|
| 56 |
1.0.3 https://github.com/zordius/lightncandy/releases/v1.0.3 |
| 57 |
* align with handlebars.js 4.0.6 |
| 58 |
* b25ea6b1de support FLAG_JSLENGTH when FLAG_METHOD |
| 59 |
|
| 60 |
1.0.2 https://github.com/zordius/lightncandy/releases/v1.0.2 |
| 61 |
* align with handlebars.js 4.0.6 |
| 62 |
* e9108cdb52 {{#if}}{{else if}}{{/if}} will not cause next {{else}} validation error now |
| 63 |
|
| 64 |
1.0.1 https://github.com/zordius/lightncandy/releases/v1.0.1 |
| 65 |
* align with handlebars.js 4.0.6 |
| 66 |
* cb94f98149 fix helpers in partial are not collected bug |
| 67 |
* bcbadd785d lookup inside subexpression returns untouched value now |
| 68 |
* 18e114a683 {{foo.bar}} will never be resolved as custom helper now |
| 69 |
|
| 70 |
1.0.0 https://github.com/zordius/lightncandy/releases/v1.0.0 |
| 71 |
* align with handlebars.js 4.0.6 |
| 72 |
* b2d9eab03a fix generated PHP code error when FLAG_RUNTIMEPARTIAL is on |
| 73 |
* 510b4611bb fix `{{lookup . foo}}` issue |
| 74 |
* e629941f8f fix `Cannot use lexical variable $sp as a parameter name` issue in PHP 7.1 |
| 75 |
* 84c94665d8 export SafeString static properties when FLAG_STANDALONEPHP is enabled |
| 76 |
* 5e9f6d0bc7 fix FLAG_STANDALONEPHP mode LS Class bug |
| 77 |
* 7ec3dac944 refine safestring compile option |
| 78 |
* 1f10501c01 fix {{#with .}} context behavior |
| 79 |
* 426291d7ad support recursive {{@partial-block}} |
| 80 |
|
| 81 |
v0.95 https://github.com/zordius/lightncandy/releases/v0.95 |
| 82 |
* align with handlebars.js 4.0.5 |
| 83 |
* 71abc9853e fix `{{> (lookup foo bar)}}` issue (allow builtin helpers in subexpression) |
| 84 |
* c321e477b2 fix comment inside partial block issue |
| 85 |
* 6e98a13a55 fix `@partial-block` id generation issue |
| 86 |
|
| 87 |
v0.94 https://github.com/zordius/lightncandy/releases/v0.94 |
| 88 |
* align with handlebars.js 4.0.5 |
| 89 |
* 7082bd3276 refine helper function exporter |
| 90 |
* dcda1202cf now can compile custom helpers without implementation when FLAG_EXTHELPER is on |
| 91 |
* 2eb2ae8e8d supports `{{else with foo}}` , `{{else each bar}}`, `{{else myHelper}}` now |
| 92 |
* cd8d96befa fix {{foo.bar}} lookup PHP warning |
| 93 |
* 0effc46896 fix compile bug when override built-in helpers |
| 94 |
|
| 95 |
v0.93 https://github.com/zordius/lightncandy/releases/v0.93 |
| 96 |
* align with handlebars.js 4.0.5 |
| 97 |
* a9fb08c3e8 speed up `{{@var}}` lookup, check parent type when `{{../var}}` |
| 98 |
* c7040ecc76 **BREAK CHANGE** |
| 99 |
* new FLAG_JSLENGTH to support {{array.length}} lookup |
| 100 |
* now FLAG_JS includes FLAG_JSLENGTH |
| 101 |
* now FLAG_HANDLEBARSJS includes FLAG_JSLENGTH |
| 102 |
* 8f88c409c9 fix compiler bug for none FLAG_ELSE cases |
| 103 |
* a7617d9ff1 now default options.inverse provided even when no `{{else}}` in template |
| 104 |
* 45e0b600f7 refine unclosed partial block error message |
| 105 |
* 73ac95e882 allow spacing between `{{` and `#` now |
| 106 |
|
| 107 |
v0.92 https://github.com/zordius/lightncandy/releases/v0.92 |
| 108 |
* align with handlebars.js 4.0.5 |
| 109 |
* c9811d9c3a Detect `{{..foo}}` syntax error |
| 110 |
* 2e77514841 fix `[fo o]="1 2 3"` parsing bug |
| 111 |
* 52b072e246 fix compiler error when a block customhelper inside `{{else if}}` |
| 112 |
* e30edc4302 fix `{{#with .}}` logic when input is an empty array |
| 113 |
|
| 114 |
v0.91 https://github.com/zordius/lightncandy/releases/v0.91 |
| 115 |
* align with handlebars.js 4.0.5 |
| 116 |
* 93323508ce now FLAG_BESTPERFORMANCE also includes FLAG_STANDALONEPHP. |
| 117 |
* 4deffaf89d prevent warning message when FLAG_ERROR_SKIPPARTIAL used. |
| 118 |
* fbc04f065b **BREAK CHANGE** remove `basedir` and `fileext` option. |
| 119 |
* 5c7c651985 new `partialresolver` option. |
| 120 |
* 771eedfda4 fix compile error when `{{#if}}..{{else if}}..no_else_here..{{/if}}` |
| 121 |
* 68134c627c do not use SafeString when no Runtime::enc() included |
| 122 |
* 6cda56c552 Now FLAG_STANDALONEPHP do not require \LightnCandy\SafeString class |
| 123 |
* 2dd671592e fix the [fo o]=123 parsing bug |
| 124 |
* 993e65ef8e fix @partial-block duplication bug |
| 125 |
* 2c9044e1d7 new `helperresolver` option. |
| 126 |
|
| 127 |
v0.90 https://github.com/zordius/lightncandy/releases/v0.90 |
| 128 |
* align with handlebars.js 4.0.4 |
| 129 |
* 47e1b28847 performance improvement: now `{{ ... }}` escaping only takes 70% time. |
| 130 |
* ff776f1dff add new options `delimiters` to change default delimiters. |
| 131 |
* 8942155d20 **BREAK CHANGE** remove FLAG_BARE , the generated PHP code will not includes `<?php` and `?>` now. |
| 132 |
* 9dab19e658 support `{{else if ...}}` and `{{else unless ...}}` now. |
| 133 |
* 58a23f3ef6 support `{{log ...}}` now. |
| 134 |
* d5c32c4028 **BREAK CHANGE** remove option: helpers, blockhelpers. |
| 135 |
* dab79506cc support SafeString now. |
| 136 |
* dab79506cc **BREAK CHANGE** rename option: hbhelpers into helpers. |
| 137 |
* a1f699efa7 support render time partial function. |
| 138 |
|
| 139 |
v0.89 https://github.com/zordius/lightncandy/releases/v0.89 |
| 140 |
* align with handlebars.js 4.0.4 |
| 141 |
* use newer handlebars spec: https://github.com/jbboehr/handlebars-spec |
| 142 |
* 50028d36a7 **BREAK CHANGE** remove FLAG_MUSTACHESP |
| 143 |
* e32079fe08 fix standalone detection on single `{{.}}` or `{{this}}` |
| 144 |
* 83caaec2c0 support `{{#if foo includeZero=true}}` |
| 145 |
* 6c636a8857 support literal references |
| 146 |
* 3d7a7d81a7 **BREAK CHANGE** remove FLAG_MUSTACHEPAIN |
| 147 |
* 3d7a7d81a7 new flag FLAG_PREVENTINDENT to stop auto indent on partial. |
| 148 |
* 0d3a92a52e new flag FLAG_HANDLEBARSJS_FULL to enable all handlebars features with performance drop |
| 149 |
* c76b9c6fc0 **BREAK CHANGE** now FLAG_MUSTACHE also includes FLAG_RUNTIMEPARTIAL |
| 150 |
* 28be0377ea new flag FLAG_MUSTACHELAMBDA to support simple case of mustache lambda |
| 151 |
* 37ba20c234 **BREAK CHANGE** rename LCRun3 to LCRun4 for interface changed, old none standalone templates will error with newer version |
| 152 |
* 8f062e4ef1 fix for nested subexpression parsing bug |
| 153 |
* b3704e78c4 new flag FLAG_HANDLEBARSLAMBDA to support handlebars lambda |
| 154 |
* 4d4f4d5b57 **BREAK CHANGE** start to use namespace, support psr-4 autoloader by composer |
| 155 |
* rename LightnCandy to LightnCandy\LightnCandy |
| 156 |
* rename LCRun4 to LightnCandy\Runtime |
| 157 |
* rename `lcrun` option to `runtime` |
| 158 |
* b818c2411e split LightnCandy methods into different classes |
| 159 |
* 67a4518460 Refactoring Validator and Compiler done |
| 160 |
* e1362e7779 Usage counting feature fixed |
| 161 |
* 4e21ff3f11 **BREAK CHANGE** remove FLAG_WITH |
| 162 |
* fde6859ae7 new flag FLAG_NOHBHELPERS to remove all handlebars.js builtin helpers |
| 163 |
* 82e4221919 **BREAK CHANGE** now FLAG_MUSTACHE also includes FLAG_NOHBHELPERS |
| 164 |
* b71afbead3 **BREAK CHANGE** rename FLAG_JSQUOTE to FLAG_HBESCAPE |
| 165 |
* 90c2bbf16d **BREAK CHANGE** now {{#if}} and {{#unless}} context behavior align with handlebars.js 4.0.4 |
| 166 |
* c65e380877 **BREAK CHANGE** now flag FLAG_PREVENTINDENT behavior align with handlebars.js options.preventIndent |
| 167 |
* f85001d225 fix standalone detection when space control {{~}} used |
| 168 |
* 6d1e390c5d now hbhelpers context change behavior align with handlebars.js 4.0.4 |
| 169 |
* 0d1f00196f **BREAK CHANGE** now render function interface align with handlebars.js 4.0.4 |
| 170 |
* 44741ac197 supports {{lookup foo bar}} now |
| 171 |
* 50eae060c5 new flag FLAG_PARTIALNEWCONTEXT to create new empty context for every partial |
| 172 |
* e118a08e6b **BREAK CHANGE** rename FLAG_STANDALONE to FLAG_STANDALONEPHP |
| 173 |
* 3994014ca4 support {{#with bar as |foo|}} |
| 174 |
* fc2f9643c7 support {{#each foo as |value index|}} |
| 175 |
* 83a173e575 support block params for hbhelpers |
| 176 |
* 2a262f671b new flag FLAG_STRINGPARAMS to support handlebars.js options.stringParams |
| 177 |
* dcc84c3118 support lambda arguments |
| 178 |
* edef496b25 maintain options.contexts for custom helpers now |
| 179 |
* 8e94d5d6ba support partial block: {{#> foo}}block{{/foo}} |
| 180 |
* 4347a78b3e support partial block: {{> @partial-block}} |
| 181 |
* f4df6d722f support inline partial: {{#*inline "partial_name"}}...{{/inline}} |
| 182 |
* 71130e69e0 fix partial block + inline partial parsing bugs |
| 183 |
|
| 184 |
v0.23 https://github.com/zordius/lightncandy/releases/v0.23 |
| 185 |
* align with handlebars.js 3.0.3 |
| 186 |
* b194f37430 support `{{{{rawblock}}}} ... {{{{/rawblock}}}}` when FLAG_RAWBLOCK enabled |
| 187 |
* 927741a07c add `prePartial()` static method and `prepartial` compile option for extendibility |
| 188 |
* f9f41277d7 support private variable injection from handlebars custom block helpers |
| 189 |
* 850dcd7082 fix `{{!-- --}}` bug when it inside a partial |
| 190 |
* edb486ac87 fix support for nested raw block |
| 191 |
|
| 192 |
v0.22 https://github.com/zordius/lightncandy/releases/v0.22 |
| 193 |
* align with handlebars.js 3.0.3 |
| 194 |
* 1d1e8829cb fix `{{foo bar=(tee_taa "hoo")}}` parsing issue |
| 195 |
* 9bd994ee94 fix JavaScript function in runtime partial be changed bug |
| 196 |
* a514e4652e fix `{{#foo}}` issue when foo is an empty ArrayObject |
| 197 |
|
| 198 |
v0.21 https://github.com/zordius/lightncandy/releases/v0.21 |
| 199 |
* align with handlebars.js 3.0.3 |
| 200 |
* 9f24268d57 support FLAG_BARE to remove PHP start/end tags |
| 201 |
* 60d5a46c55 handle object/propery merge when deal with partial |
| 202 |
* d0130bf7e5 support undefined `{{helper undefined}}` |
| 203 |
* 8d228606f7 support `lcrun` to use customized render library when compile() |
| 204 |
* d0bad115f0 remove tmp PHP file when prepare() now |
| 205 |
* d84bbb4519 support keeping tmp PHP file when prepare() |
| 206 |
* ee833ae2f8 fix syntax validator bug on `{{helper "foo[]"}}` |
| 207 |
* 30b891ab28 fix syntax validator bug on `{{helper 'foo[]'}}` |
| 208 |
* 1867f1cc37 now count subexpression usage correctly |
| 209 |
* 78ef9b8a89 new syntax validator on handlebars variable name |
| 210 |
|
| 211 |
v0.20 https://github.com/zordius/lightncandy/releases/v0.20 |
| 212 |
* align with handlebars.js 3.0.0 |
| 213 |
* 3d9a557af9 fix `{{foo (bar ../abc)}}` compile bug |
| 214 |
* 7dc16ac255 refine custom helper error detection logic |
| 215 |
* 72d32dc299 fix subexpression parsing bug inside `{{#each}}` |
| 216 |
* d1f1b93130 support context access inside a hbhelper by `$options['_this']` |
| 217 |
|
| 218 |
v0.19 https://github.com/zordius/lightncandy/releases/v0.19 |
| 219 |
* align with handlebars.js 3.0.0 |
| 220 |
* 5703851e49 fix `{{foo bar=['abc=123']}}` parsing bug |
| 221 |
* 7b4e36a1e3 fix `{{foo bar=["abc=123"]}}` parsing bug |
| 222 |
* c710c8349b fix `{{foo bar=(helper a b c)}}` parsing bug |
| 223 |
* 4bda1c6f41 fix subexpression+builtin block helper (EX: `{{#if (foo bar)}}`) parsing bug |
| 224 |
* 6fdba10fc6 fix `{{foo ( bar) or " car" or ' cat' or [ cage]}}` pasing bug |
| 225 |
* 0cd5f2d5e2 fix indent issue when custom helper inside a partial |
| 226 |
* 296ea89267 support dynamic partial `{{> (foo)}}` |
| 227 |
* f491d04bd5 fix `{{../foo}}` look up inside root scope issue |
| 228 |
* 38fba8a5a5 fix scope issue for hbhelpers |
| 229 |
* a24a0473e2 change internal variable structure and fix for `{{number}}` |
| 230 |
* 7ae8289b7e fix escape in double quoted string bug |
| 231 |
* 90adb5531b fix `{{#if 0.0}}` logic to behave as false |
| 232 |
* 004a6ddffe fix `{{../foo}}` double usage count bug |
| 233 |
* 9d55f12c5a fix subexpression parsing bug when line change inside it |
| 234 |
* fe1cb4987a **BREAK CHANGE** remove FLAG_MUSTACHESEC |
| 235 |
|
| 236 |
v0.18 https://github.com/zordius/lightncandy/releases/v0.18 |
| 237 |
* align with handlebars.js 2.0.0 |
| 238 |
* 7bcce4c1a7 support `{{@last}}` for `{{#each}}` on both object and array |
| 239 |
* b0c44c3b40 remove ending \n in lightncandy.php |
| 240 |
* e130875d5a support single quoted string input: `{{foo 'bar'}}` |
| 241 |
* c603aa39d8 support `renderex` to extend anything in render function |
| 242 |
* f063e5302c now render function debug constants works well in standalone mode |
| 243 |
* 53f6a6816d fix parsing bug when there is a `=` inside single quoted string |
| 244 |
* 2f16c0c393 now really autoload when installed with composer |
| 245 |
* c4da1f576c supports `{{^myHelper}}` |
| 246 |
|
| 247 |
v0.17 https://github.com/zordius/lightncandy/releases/v0.17 |
| 248 |
* align with handlebars.js 2.0.0 |
| 249 |
* 3b48a0acf7 fix parsing bug when FLAG_NOESCAPE enabled |
| 250 |
* 5c774b1b08 fix hbhelpers response error with options['fn'] when FLAG_BESTPERFORMANCE enabled |
| 251 |
* c60fe70bdb fix hbhelpers response error with options['inverse'] when FLAG_BESTPERFORMANCE enabled |
| 252 |
* e19b3e3426 provide options['root'] and options['_parent'] to hbhelpers |
| 253 |
* d8a288e83b refine variable parsing logic to support `{{@../index}}`, `{{@../key}}`, etc. |
| 254 |
|
| 255 |
v0.16 https://github.com/zordius/lightncandy/releases/v0.16 |
| 256 |
* align with handlebars.js 2.0.0 |
| 257 |
* 4f036aff62 better error message for named arguments |
| 258 |
* 0b462a387b support `{{#with var}}` ... `{{else}}` ... `{{/with}}` |
| 259 |
* 4ca624f651 fix 1 ANSI code error |
| 260 |
* 01ea3e9f42 support instances with PHP __call magic funciton |
| 261 |
* 38059036a7 support `{{#foo}}` or `{{#each foo}}` on PHP Traversable instance |
| 262 |
* 366f5ec0ac add FLAG_MUSTACHESP and FLAG_MUSTACHEPAIN into FLAG_HANDLEBARS and FLAG_HANDLEBARSJS now |
| 263 |
* b61d7b4a81 align with handlebars.js standalone tags behavior |
| 264 |
* b211e1742e now render false as 'false' |
| 265 |
* 655a2485be fix bug for `{{helper "==="}}` |
| 266 |
* bb58669162 support FLAG_NOESCAPE |
| 267 |
|
| 268 |
v0.15 https://github.com/zordius/lightncandy/releases/v0.15 |
| 269 |
* align with handlebars.js 2.0.0 |
| 270 |
* 4c750806e8 fix for `\` in template |
| 271 |
* 12ab6626d6 support escape. `\{{foo}}` will be rendered as is. ( handlebars spec , require FLAG_SLASH ) |
| 272 |
* 876bd44d9c escape ` to &#x60; ( require FLAG_JSQUOTE ) |
| 273 |
* f1f388ed79 support `{{^}}` as `{{else}}` ( require FLAG_ELSE ) |
| 274 |
* d5e17204b6 support `{{#each}}` == `{{#each .}}` now |
| 275 |
* 742126b440 fix `{{>foo/bar}}` partial not found bug |
| 276 |
* d62c261ff9 support numbers as helper input `{{helper 0.1 -1.2}}` |
| 277 |
* d40c76b84f support escape in string arguments `{{helper "test \" double quote"}}` |
| 278 |
* ecb57a2348 fix for missing partial in partial bug |
| 279 |
* 1adad5dbfa fix `{{#with}}` error when FLAG_WITH not used |
| 280 |
* ffd5e35c2d fix error when rendering array value as `{{.}}` without FLAG_JSOBJECT |
| 281 |
* bd4987adbd support changing context on partial `{{>foo bar}}` ( require FLAG_RUNTIMEPARTIAL ) |
| 282 |
* f5decaa7e3 support name sarguments on partial `{{>foo bar name=tee}}` . fix `{{..}}` bug |
| 283 |
* c20bb36457 support `partials` in options |
| 284 |
* e8779dbe8c change default `basedir` hehavior, stop partial files lookup when do not prodive `basedir` in options |
| 285 |
* c4e3401fe4 fix `{{>"test"}}` or `{{>[test]}}` or `{{>1234}}` bug |
| 286 |
* e59f62ea9b fix seciton behavior when input is object, and add one new flag: FLAG_MUSTACHESEC |
| 287 |
* 80eaf8e007 use static::method not self::method for subclass |
| 288 |
* 0bad5c8f20 fix usedFeature generation bugs |
| 289 |
|
| 290 |
v0.14 https://github.com/zordius/lightncandy/releases/v0.14 |
| 291 |
* align with handlebars.js 2.0.0-alpha.4 |
| 292 |
* fa6225f278 support boolen value in named arguments for cusotm helper |
| 293 |
* 160743e1c8 better error message when unmatch `{{/foo}}` tag detected |
| 294 |
* d9a9416907 support `{{&foo}}` |
| 295 |
* 8797485cfa fix `{{^foo}}` logic when foo is empty list |
| 296 |
* 523b1373c4 fix handlebars custom helper interface |
| 297 |
* a744a2d522 fix bad syntax when FLAG_RENDER_DEBUG + helpers |
| 298 |
* 0044f7bd10 change FLAG_THIS behavoir |
| 299 |
* b5b0739b68 support recursive context lookup now ( mustache spec , require FLAG_MUSTACHELOOKUP ) |
| 300 |
* 096c241fce support standalone tag detection now ( mustache spec , require FLAG_MUSTACHESP ) |
| 301 |
* cea46c9a67 support `{{=<% %>=}}` to set delimiter |
| 302 |
* 131696af11 support subexpression `{{helper (helper2 foo) bar}}` |
| 303 |
* 5184d41be6 support runtime/recursive partial ( require FLAG_RUNTIMEPARTIAL ) |
| 304 |
* 6408917f76 support partial indent ( mustache spec , require FLAG_MUSTACHEPAIN ) |
| 305 |
|
| 306 |
v0.13 https://github.com/zordius/lightncandy/releases/v0.13 |
| 307 |
* align with handlebars.js 2.0.0-alpha.4 |
| 308 |
* e5a8fe3833 fix issue #46 ( error with `{{this.foo.bar}}` ) |
| 309 |
* ea131512f9 fix issue #44 ( error with some helper inline function PHP code syntax ) |
| 310 |
* 522591a0c6 fix issue #49 ( error with some helper user function PHP code syntax ) |
| 311 |
* c4f7e1eaac support `{{foo.bar}} lookup on instance foo then property/method bar ( flagd FLAG_PROPERTY or FLAG_METHOD required ) |
| 312 |
* 0f4c0daa4b stop simulate Javascript output for array when pass input to custom helpers |
| 313 |
* 22d07e5f0f **BREAK CHANGE** BIG CHANGE of custom helper interface |
| 314 |
|
| 315 |
v0.12 https://github.com/zordius/lightncandy/releases/v0.12 |
| 316 |
* align with handlebars.js 2.0.0-alpha.2 |
| 317 |
* 64db34cf65 support `{{@first}}` and `{{@last}}` |
| 318 |
* bfa1fbef97 add new flag FLAG_SPVARS |
| 319 |
* 10a4623dc1 **BREAK CHANGE** remove json schema support |
| 320 |
* 240d9fa290 only export used LCRun2 functions when compile() with FLAG_STANDALONE now |
| 321 |
* 3fa897c98c **BREAK CHANGE** rename LCRun2 to LCRun3 for interface changed, old none standalone templates will error with newer version |
| 322 |
* e0838c7418 now can output debug template map with ANSI color |
| 323 |
* 80dbeab63d fix php warning when compile with custom helper or block custom helper |
| 324 |
* 8ce6268b64 support Handlebars.js style custom helper |
| 325 |
|
| 326 |
v0.11 https://github.com/zordius/lightncandy/releases/v0.11 |
| 327 |
* align with handlebars.js 2.0.0-alpha.2 |
| 328 |
* a275d52c97 use php array, remove val() |
| 329 |
* 8834914c2a only export used custom helper into render function now |
| 330 |
* eb6d82d871 refine option flag consts |
| 331 |
* fc437295ed refine comments for phpdoc |
| 332 |
* fbf116c3e2 fix for tailing ; after helper functions |
| 333 |
* f47a2d5014 fix for wrong param when new Exception |
| 334 |
* 94e71ebcbd add isset() check for input value |
| 335 |
* a826b8a1ab support `{{else}}` in `{{#each}}` now |
| 336 |
* 25dac11bb7 support `{{!-- comments --}}` now (this handlebars.js extension allow `}}` to be placed inside a comment) |
| 337 |
* e142b6e116 support `{{@root}}` or `{{@root.foo.bar}}` now |
| 338 |
* 58c8d84aa2 custom helper can return extra flag to change html encoded behavior now |
| 339 |
|
| 340 |
v0.10 https://github.com/zordius/lightncandy/releases/v0.10 |
| 341 |
* align with handlebars.js 2.0.0-alpha.1 |
| 342 |
* 4c9f681080 file name changed: lightncandy.inc => lightncandy.php |
| 343 |
* e3de01081c some minor fix for json schema |
| 344 |
* 1feec458c7 new variable handling logic, save variable name parsing time when render() . rendering performance improved 10~30%! |
| 345 |
* 3fa897c98c **BREAK CHANGE** rename LCRun to LCRun2 for interface changed, old none standalone templates will error with newer version |
| 346 |
* 43a6d33717 fix for `{{../}}` php warning message |
| 347 |
* 9189ebc1e4 now auto push documents from Travis CI |
| 348 |
* e077d0b631 support named arguments for custom helpers `{{helper name=value}}` |
| 349 |
* 2331b6fe55 support block custom helpers |
| 350 |
* 4fedaa25f7 support number value as named arguments |
| 351 |
* 6a91ab93d2 fix for default options and php warnings |
| 352 |
* fc157fde62 fix for doblue quoted arguments (issue #15) |
| 353 |
|
| 354 |
v0.9 https://github.com/zordius/lightncandy/releases/v0.9 |
| 355 |
* align with handlebars.js 1.3 |
| 356 |
* **STOP PHP 5.3.x testing and support** |
| 357 |
* a55f2dd067 support both `{{@index}}` and `{{@key}}` when `{{#each an_object}}` |
| 358 |
* e59f931ea7 add FLAG_JSQUOTE support |
| 359 |
* 92b3cf58af report more than 1 error when compile() |
| 360 |
* 93cc121bcf test for wrong variable name format in test/error.php |
| 361 |
* 41c1b431b4 support advanced variable naming `{{foo.[bar].10}}` now |
| 362 |
* 15ce1a00a8 add FLAG_EXTHELPER option |
| 363 |
* f51337bde2 support space control `{{~sometag}}` or `{{sometag~}}` |
| 364 |
* fe3d67802e add FLAG_SPACECTL option |
| 365 |
* 920fbb3039 support custom helper |
| 366 |
* 07ae71a1bf migrate into Travis CI |
| 367 |
* ddd3335ff6 support "some string" argument |
| 368 |
* 20f6c888d7 html encode after custom helper executed |
| 369 |
* 10a2f45fdc add test generator |
| 370 |
* ccd1d3ddc2 **BREAK CHANGE** migrate to Scrutinizer, change file name LightnCandy.inc to LightnCandy.php |
| 371 |
* 5ac8ad8d04 now is a Composer package |
| 372 |
|
| 373 |
v0.8 https://github.com/zordius/lightncandy/releases/v0.8 |
| 374 |
* align with handlebars.js 1.0.12 |
| 375 |
* aaec049 fix partial in partial not works bug |
| 376 |
* 52706cc fix for `{{#var}}` and `{{^var}}` , now when var === 0 means true |
| 377 |
* 4f7f816 support `{{@key}}` and `{{@index}}` in `{{#each var}}` |
| 378 |
* 63aef2a prevent array_diff_key() PHP warning when `{{#each}}` on none array value |
| 379 |
* 10f3d73 add more is_array() check when `{{#each}}` and `{{#var}}` |
| 380 |
* 367247b fix `{{#if}}` and `{{#unless}}` when value is an empty array |
| 381 |
* c76c0bb returns null if var is not exist in a template [contributed by [email protected]] |
| 382 |
* d18bb6d add FLAG_ECHO support |
| 383 |
* aec2b2b fix `{{#if}}` and `{{#unless}}` when value is an empty string |
| 384 |
* 8924604 fix variable output when false in an array |
| 385 |
* e82c324 fix for ifv and ifvar logic difference |
| 386 |
* 1e38e47 better logic on var name checking. now support `{{0}}` in the loop, but it is not handlebars.js standard |
| 387 |
|
| 388 |
v0.7 https://github.com/zordius/lightncandy/releases/v0.7 |
| 389 |
* align with handlebarsjs 1.0.11 |
| 390 |
* add HISTORY.md |
| 391 |
* 777304c change compile format to include in val, isec, ifvar |
| 392 |
* 55de127 support `{{../}}` in `{{#each}}` |
| 393 |
* 57e90af fix parent levels detection bug |
| 394 |
* 96bb4d7 fix bugs for `{{#.}}` and `{{#this}}` |
| 395 |
* f4217d1 add ifv and unl 2 new methods for LCRun |
| 396 |
* 3f1014c fix `{{#this}}` and `{{#.}}` bug when used with `{{../var}}` |
| 397 |
* cbf0b28 fix `{{#if}}` logic error when using `{{../}}` |
| 398 |
* 2b20ef8 fix `{{#with}}` + `{{../}}` bug |
| 399 |
* 540cd44 now support FLAG_STANDALONE |
| 400 |
* 67ac5ff support `{{>partial}}` |
| 401 |
* 98c7bb1 detect unclosed token now |
| 402 |
|
| 403 |
v0.6 https://github.com/zordius/lightncandy/releases/v0.6 |
| 404 |
* align with handlebarsjs 1.0.11 |
| 405 |
* 45ac3b6 fix #with bug when var is false |
| 406 |
* 1a46c2c minor #with logic fix. update document |
| 407 |
* fdc753b fix #each and section logic for 018-hb-withwith-006 |
| 408 |
* e6cc95a add FLAG_PARENT, detect template error when scan() |
| 409 |
* 1980691 make new LCRun::val() method to normal path.val logic |
| 410 |
* 110d24f `{{#if path.var}}` bug fixed |
| 411 |
* d6ae2e6 fix `{{#with path.val}}` when input value is null |
| 412 |
* 71cf074 fix for 020-hb-doteach testcase |
| 413 |
|
| 414 |
v0.5 https://github.com/zordius/lightncandy/releases/v0.5 |
| 415 |
* align with handlebarsjs 1.0.7 |
| 416 |
* 955aadf fix #each bug when input is a hash |