Memmie Lenglet and Jun Yang
8f9639f1d6
feat: when tag with multiple values
2021-05-06 22:52:22 +08:00
Jun Yang
65487654c4
fix: capitalize filter not lower case trailing string, fixes #326
2021-04-17 10:30:57 +08:00
Jun Yang
9a9b792c63
fix: newline_to_br filter should output <br /> instead of <br/>, fixes #320
2021-03-13 17:14:10 +08:00
Jun Yang
99d14e76d7
fix: comparison for empty/nil, fixes #321
2021-03-13 17:14:08 +08:00
harttle
2f059f6a25
feat: support filters in if/unless/case, see #287
2021-02-12 22:22:41 +08:00
harttle
e37824fd8a
feat: support function calls, closes #222
2021-02-12 13:47:30 +08:00
harttle
81e11bb9c4
feat: support layout none, closes #299
2021-02-12 01:57:30 +08:00
Jason Etcovitch and Jun Yang
20f559e545
fix: default to precedence 1 for custom operators
2021-02-05 23:57:36 +08:00
harttle
f42c217fc0
feat: compact filter
2021-02-04 22:47:34 +08:00
Jason Etcovitch and Jun Yang
befc33c4eb
feat: create trie programmatically in options
2021-02-04 09:11:28 +08:00
Jason Etcovitch and Jun Yang
8734e2e6ce
feat: rename to defaultOperators and Operators
2021-02-04 09:11:28 +08:00
Jason Etcovitch and Jun Yang
18055c8855
test: add LiquidOptions#operators test
2021-02-04 09:11:28 +08:00
harttle
a3af44dc10
feat: support {{block.super}}, see #38
2021-01-24 02:57:48 +08:00
Joonas and Jun Yang
de32259bb9
fix: lint
2020-12-18 22:03:58 +08:00
Joonas and Jun Yang
d70cd2a1ea
feat: add preserveTimezones option
2020-12-18 22:03:58 +08:00
Joonas and Jun Yang
e3ecfe3adc
fix: simpler timezone regex and non-null offset
2020-12-18 22:03:58 +08:00
wyozi and Jun Yang
c16c787861
feat: parse and handle date timezone offsets
2020-12-18 22:03:58 +08:00
Alex de Wergifosse and Jun Yang
b8e4b3337b
test: add tests for keepOutputType option
2020-12-16 10:20:10 +08:00
harttle
117673a725
style: make eslint check .ts files
2020-12-08 00:24:07 +08:00
harttle
2bbf50171b
fix: elsif is not supported for unless, fixes #268
2020-12-08 00:16:36 +08:00
harttle
a492d8e23d
fix: raw block not ignoring {% characters, fixes #263
2020-12-08 00:12:20 +08:00
sschuldenzucker and Jun Yang
6f2b24f7ca
implement lenientIf for the unless tag, too
2020-12-06 22:58:08 +08:00
sschuldenzucker and Jun Yang
768fb79e32
Implement lenientIf option ( resolve #265 ; default off)
...
See description of the option in liquid-options.ts.
2020-12-06 22:58:08 +08:00
sschuldenzucker and Jun Yang
c920ebb282
fix test: don't pass {} for Context
2020-12-06 22:58:08 +08:00
harttle
72ee7b4c1e
feat: support jsTruthy, #255 #257
2020-10-08 13:11:02 +08:00
harttle
5b3f4195f0
fix: allow quoted variable name in capture, fixes #252
2020-10-03 22:03:17 +08:00
Tejas Manohar and GitHub
941dd668fe
fix: enumerate Promises (e.g. in for & tablerow) ( #237 )
...
* fix: enumerate Promise<array> (e.g. in {% for ... %})
Previously, a Promise of an array was not being enumerated in
{% for %}, for example. This is misleading since the library
handles promises elsewhere (e.g. if you {% assign x = promiseArray %}
and then {% for v in x %}, it worked just fine.
This PR makes Promises of arrays handled by changing toEnumerable
to handle then-ables. This affects other iterators, too, e.g. tablerow,
so I put in a test for that as well.
2020-06-28 09:55:56 +08:00
harttle
e36f3ff291
feat: async filters, closes #232
2020-06-25 12:30:56 +08:00
harttle
4f17c94988
feat: sort by key, see #227
2020-05-16 00:54:40 +08:00
harttle
2fa4edaa84
docs: more specific description of strftime
2020-04-19 13:15:11 +08:00
Martin Schuster and Jun Yang
a93f11d25a
fix: respect cache render options
2020-04-03 10:42:32 +08:00
harttle
c923598b40
fix: coerce to Array in map and where filter
2020-04-01 02:22:44 +08:00
harttle
8daf281fca
fix: throw an error if : omitted unintentionally, #212 , #208
2020-03-31 14:05:38 +08:00
harttle
3e42d6b1b0
docs: website for LiquidJS
2020-03-28 17:21:07 +08:00
harttle
c371762c43
fix: default filter not applied for empty array
2020-03-26 01:39:30 +08:00
harttle
479c63350a
fix: throws on invalid arguments for prepend/append, fixes #208
2020-03-24 23:57:26 +08:00
Cristofer Gonzales and Jun Yang
93433a8b30
fix: return variable name in include error
2020-03-23 23:26:31 +08:00
harttle
d2d6a38235
perf: introduce AST to avoid reparse
2020-03-15 02:51:25 +08:00
harttle
0f25017d5d
test: test case for array index, #201
2020-03-11 01:09:58 +08:00
harttle
6de933897e
fix: concurrent write on LRU cache ( #200 )
2020-03-10 01:09:41 +08:00
harttle
2c428221cb
test: cases for TagMap
2020-03-07 00:58:39 +08:00
harttle
f57156bccd
fix: stable sort for undefined keys, fixes #191
2020-03-05 02:04:58 +08:00
harttle
61dac49b04
feat: async cache.read()/write(), remove .has()
2020-03-05 01:47:53 +08:00
harttle
6ea6881f08
feat: with & for in render tag, closes #195
2020-03-04 07:08:54 +08:00
harttle
aa27a6cd7b
feat: support json filter, closes #192
2020-03-04 03:42:18 +08:00
harttle
df8a919f71
feat: move filters/tags to instances, fixes #188
2020-03-03 00:02:29 +08:00
harttle
185312dbff
feat: "today" when using date filter, fixes #193
2020-02-21 01:48:10 +08:00
harttle
870e7ec6aa
feat: globals shared between tags, see #185
2020-02-08 04:59:23 +08:00
harttle
fc0cf6fe7b
fix: expression and string literal parser, #186
2020-02-08 03:15:55 +08:00
harttle
5f9abdc8c6
test: integration cases for opts.fs, see #181
2020-01-04 13:53:08 +08:00