Commit Graph
55 Commits
Author SHA1 Message Date
harttle 2d793a63fe fix #29 2017-04-17 22:49:53 +08:00
wojtask9 3bc7caa387 support multiline tags 2017-04-10 11:58:45 +02:00
chenosandJun Yang e72f295bd0 Comparison on NULL is always false (#27)
* All values in Liquid are truthy except nil and false.

* The falsy values are null, undefined and false.

* comparison on null
2017-03-21 14:54:26 +08:00
chenosandJun Yang 66774865f4 All values in Liquid are truthy except nil and false. (#26)
* All values in Liquid are truthy except nil and false.

* The falsy values are null, undefined and false.
2017-03-21 12:25:11 +08:00
chenosandJun Yang b307f6ffd0 Size can also be used with dot notation (#25)
* Size can also be used with dot notation (for example, {{ my_string.size }}).

* Fixed test failed.

* Optimization
2017-03-20 15:06:32 +08:00
harttle 551a15f373 import value declaration syntax 2017-03-16 19:27:54 +08:00
ChenL 4fc977268f Support create variables on the filter line. 2017-03-16 18:26:10 +08:00
harttle aa52a31e90 fix: contains return false when left side equals null 2017-03-16 10:39:10 +08:00
ChenL e4056a79ee Test if an array contains a specific number/string. 2017-03-16 10:05:50 +08:00
ChenL 7ad9ce95e9 Illegal expression in contains 2017-03-15 20:38:08 +08:00
harttle 21eefe1d7b do not trim output tags and previous \n, #19 2017-01-31 23:15:23 +08:00
harttle 5ecca1b761 feature: greedy trim disabled by default, working on #19 2017-01-31 00:07:46 +08:00
harttle 21a5ac7e08 RenderError extends original error 2017-01-21 19:41:19 +08:00
harttle 564d9cd9f4 feature: whitespace control, fixes #17 2016-12-26 23:23:58 +08:00
harttle 40bdd7e94a refactor: move file to token property 2016-11-16 01:06:37 +08:00
harttle 64e9cb7044 fix nested render error message 2016-11-16 00:48:54 +08:00
harttle 2bc53a3850 change: move context error from err.message to err.stack 2016-11-16 00:31:20 +08:00
harttle cb3378b648 refactor: static strict_filters, disable settigns when rendering 2016-11-09 02:37:52 +08:00
harttle 5c0209ec8b feature: rich info error 2016-11-09 01:58:49 +08:00
harttle 295eee8134 fix: find variable in parent scope (strict_variables) 2016-11-08 21:01:25 +08:00
harttle ddd06e12b5 strict_filters/strict_variables when creating engine 2016-11-07 00:01:02 +08:00
harttle 1e7873afc0 fix scope hidding 2016-11-06 22:08:26 +08:00
harttle fd2df81f9c use native path 2016-11-06 17:20:03 +08:00
harttle a82e50e1ab fix: crash when express views set to string 2016-11-06 16:22:52 +08:00
harttle d7b7b1724f refactor: merge render register into scope 2016-11-06 15:22:29 +08:00
harttle 258f4a2073 fix include scope.blocks bleeding 2016-11-06 14:57:48 +08:00
harttle c100a2e25e refactor: use _.assign 2016-11-03 01:01:36 +08:00
harttle f70b2ee203 refactor: use assert, fix: respect to express settings.views, close #16 2016-11-03 00:43:23 +08:00
harttle 951225fb75 refactor: use promise.mapSeries 2016-11-01 22:24:56 +08:00
harttle 9961afa3dd feture: promise.mapSeries 2016-10-31 23:45:41 +08:00
harttle 6dd836f157 feature: root option allows array of strings 2016-10-31 23:21:28 +08:00
harttle 377c805230 coverage 2016-10-26 02:50:41 +08:00
harttle 34f5cfa34d strftime coverage 2016-10-26 01:55:33 +08:00
harttle da1d28e02e feature: unshift and shift for scope, working on #15 2016-10-25 18:14:07 +08:00
harttle 6135028015 feature: interpolate bracket access, close #14 2016-10-25 01:46:37 +08:00
harttle 6d20f7aa8e rename expression.js -> syntax.js 2016-10-24 23:11:37 +08:00
harttle 1cd30733dd feature: Allow hyphens in identifiers, working on #14 2016-10-24 01:19:58 +08:00
harttle fbcd244946 test for strftime 2016-10-24 00:23:50 +08:00
harttle 365a047736 refactor filters and corresponding tests 2016-10-24 00:05:17 +08:00
harttle 300c3710c6 feature: if the provided date is 'now', create a date (#14) 2016-10-23 00:11:22 +08:00
harttle 77930e2d20 enhancement: decrease dist size 2016-10-04 22:31:28 +08:00
harttle 16a66f2b18 feature: browser side support, close #6 2016-09-27 02:28:20 +08:00
harttle 937d213a2d feature: strict rendering, close #9 2016-09-26 23:25:08 +08:00
harttle be6c67a1ba feature: strict_variables, working on #9 2016-09-26 22:49:09 +08:00
harttle ddc17a6b93 refactor: tests for tags 2016-09-26 21:52:06 +08:00
Tim Hardy bb8468708a Making good progress on async 2016-09-25 00:13:29 -05:00
Tim Hardy 87e284159d Making progress on async 2016-09-22 08:47:09 -05:00
Tim Hardy dc85c80afe About halfway through converting all tags to async 2016-09-18 01:23:29 -05:00
Tim Hardy ba390df7b6 replaced bluebird with any-promise to allow consumers of the library to choose their promise implementation 2016-09-11 23:33:26 -05:00
Tim Hardy 4626f8f6bf Got first test working in async - nested includes 2016-08-28 23:28:06 -05:00