Commit Graph
120 Commits
Author SHA1 Message Date
harttle 5196d6ad56 feature: date filter supports utc string now, fixes #49 2017-12-08 00:22:56 +08:00
harttle 8efb41a631 use isTruthy for and/or operators, fixes #47 2017-11-26 23:59:50 +08:00
harttle 4e132ca1c5 tags: use scope.opts insteadof scope.get('liquid') 2017-11-04 10:46:15 +08:00
harttle 23e7424f9d change: default extname to "", working for #41 2017-10-31 00:10:45 +08:00
harttle 485424cc89 feature: concat filter 2017-10-30 02:22:56 +08:00
harttle a239389044 docs for #41 2017-10-30 02:07:07 +08:00
harttle e8fa8d32f5 feature: separate options for value/tag trimming, working on #17 2017-10-30 01:46:31 +08:00
harttle 8c77fc5a3d fix: whiteSpace Ctrl with compliance to shopify/liquid, working on #17 2017-10-30 00:09:29 +08:00
Mehdi JafferyandJun Yang 118624ca7d Fix to make for tag iterate objects like Shopify liquid.
Ref: https://github.com/Shopify/liquid/wiki/Liquid-for-Designers#allowed-collection-types
2017-10-18 05:41:43 -05:00
harttle d08ad6dc97 fix: error.stack assertion in v8.5 2017-10-06 12:32:06 +08:00
harttle e22870f5d7 fix: broken unit test by UTC time parsing behaviour change 2017-10-06 12:16:03 +08:00
harttle 21af8c4d7a fix read/write variable in parent's scope, fix #39 2017-08-26 17:57:43 +08:00
harttle 11259fae62 fix stack matching 2017-08-16 00:04:31 +08:00
harttle 030037eedc cover all 2017-08-15 23:52:05 +08:00
harttle 6d59f34fc8 cover all 2017-08-14 22:43:49 +08:00
harttle 72597c52e5 cover all 2017-08-14 22:07:08 +08:00
harttle 4ae63b2899 test cases for #36 2017-08-04 11:27:12 +08:00
harttle a2a076d038 refactor access seq parsing 2017-08-03 13:46:00 +08:00
harttle 4ee2bc964c upgrade outdated dependencies 2017-07-28 21:25:24 +08:00
harttle 14e53ed3a9 test cases for #32 2017-07-14 00:34:12 +08:00
harttle 9f82aec569 add test case for truncate 2017-07-13 16:28:32 +08:00
harttle 2632e3e97e eslint 2017-04-24 21:31:30 +08:00
harttle 07ec997ffd tests for truthy 2017-04-20 10:31:02 +08:00
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
ChenL 45e0fb21dc Fixed array arguments bug 2017-03-16 19:02:30 +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 f1d68409b1 Do not throw error in contains when variable is illegal. 2017-03-15 21:20:00 +08:00
ChenL 7ad9ce95e9 Illegal expression in contains 2017-03-15 20:38:08 +08:00
harttle 0f4edc5b53 add unit test for #21 2017-03-15 17:13:05 +08:00
harttle 492f56cbfb unit test: multiple hash 2017-02-01 13:49:01 +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 84f7a399c5 update README and unit test 2016-12-27 00:33:11 +08:00
harttle 044035b8ed unit tests for #17 2016-12-26 23:37:33 +08:00
harttle 564d9cd9f4 feature: whitespace control, fixes #17 2016-12-26 23:23:58 +08:00
harttle fbb1dc8a36 test cases for filters: string->number convertion, #18 2016-12-15 23:14:49 +08:00
harttle 4719544d49 fix: number convertion for plus filter, closes #18 2016-12-15 22:38:48 +08:00
harttle 89636736a4 robust date filter 2016-12-08 23:25:38 +08:00
harttle 543368ed89 unit test for original error for {%layout%} 2016-12-01 00:50:36 +08:00
harttle dcd7b01fa4 update tag test 2016-11-16 02:53:30 +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 397b2e48b6 fix default filter 2016-11-15 21:58:05 +08:00