harttle
887b736f39
test cases for stringify
2018-08-14 00:11:50 +08:00
harttle
7a3689067b
feature: support toLiquid, working on #81
2018-08-14 00:11:50 +08:00
harttle
5b43520d78
feature: variable lookup respects to to_liquid, #81
2018-08-14 00:11:50 +08:00
harttle
fa5b731daf
fix string type checking and circular reference, working on #81
2018-08-14 00:11:50 +08:00
harttle
c3de3fbb19
fix: post-increment, pre-decrement working on #76
2018-07-21 22:59:52 +08:00
harttle
b5cfd2d2c5
fix: {%assign%} now adds a shading scope
2018-07-21 21:30:40 +08:00
harttle
63b5658604
refactor: src/scope.js
2018-07-21 17:02:18 +08:00
Ryan Kennedy and Jun Yang
c79700ef1a
fix: correctly understand variables with question marks
...
Fixes #77
2018-07-18 10:15:43 +08:00
harttle
02806b2257
fix #75
2018-07-16 15:02:31 +08:00
Jun Yang
44b1aac096
remove any-promise, working on #73
2018-06-23 21:55:23 +08:00
Cory Mawhorter and Jun Yang
aa54dad36e
fix dupe name bug
2018-04-07 19:36:50 +08:00
ChenL and Jun Yang
c55f0234eb
Add xhr support for render file in browser.
2018-01-12 10:53:43 +08:00
harttle
0f9adfb067
change: remove deprecated features, coverall
2017-12-23 21:31:55 +08:00
harttle
ace271c7f0
feature: support static filepath resolving by options.dynamicPartials,
...
fix #51
2017-12-21 14:09:30 +08:00
harttle
b24582c2c4
remove debug message, working on #50
2017-12-08 00:28:51 +08:00
harttle
a4126e7f10
fix: typo in scope.get("liquid") error message, fixes #50
2017-12-08 00:24:23 +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
e8fa8d32f5
feature: separate options for value/tag trimming, working on #17
2017-10-30 01:46:31 +08:00
harttle
502426f621
mv whiteSpaceCtrl to a separate file
2017-10-30 00:36:21 +08:00
harttle
8c77fc5a3d
fix: whiteSpace Ctrl with compliance to shopify/liquid, working on #17
2017-10-30 00:09:29 +08:00
harttle
21af8c4d7a
fix read/write variable in parent's scope, fix #39
2017-08-26 17:57:43 +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
jaswrks and GitHub
9f446ad024
Support {{- and -}} for whitespace control.
...
With this PR it now matches the intended functionality; i.e., https://github.com/harttle/liquidjs/wiki/Whitespace-Control
2017-08-03 06:06:35 -08:00
harttle
a2a076d038
refactor access seq parsing
2017-08-03 13:46:00 +08:00
jaswrks and GitHub
3dc37bf980
Bug fix for foo.bar[0].foo that is not working.
...
Corrects a bug where `foo.bar[0].foo` results in error: 'Cannot read property `foo` of undefined', because the sequence contains an empty string; i.e., `seq.push('')` should be avoided.
Another possible solution would be to strip empty strings from the final `seq` variable, but this PR fixes the immediate problem.
2017-08-02 10:37:11 -08:00
harttle
4ee2bc964c
upgrade outdated dependencies
2017-07-28 21:25:24 +08:00
wojtask9 and Jun Yang
ea2a5f5c3b
add identation value to token ( #34 )
...
* add identation value to token
* fix lint problems
* use var instead of let
2017-07-21 12:44:27 +08:00
harttle
14e53ed3a9
test cases for #32
2017-07-14 00:34:12 +08:00
aleclarson
fb52c864b1
Add isPlainObject to 'util/underscore.js'
2017-07-13 10:33:01 -04:00
harttle
2632e3e97e
eslint
2017-04-24 21:31:30 +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
chenos and Jun 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
chenos and Jun 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
chenos and Jun 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