1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-27 05:24:39 +01:00
Commit Graph

131 Commits

Author SHA1 Message Date
Oliver Steele
6161e6df28 Move chunks -> render 2017-07-04 11:03:18 -04:00
Oliver Steele
05597307bd Render uses a switch instead of polymorphism 2017-07-04 10:25:29 -04:00
Oliver Steele
8d9df82787 Renderers return a string, rather than taking an io.writer 2017-07-04 07:41:17 -04:00
Oliver Steele
24d83f167a "contains" tests for arrays too 2017-07-03 12:56:18 -04:00
Oliver Steele
ba874de258 Implement drops 2017-07-03 12:00:43 -04:00
Oliver Steele
cb8911a22c Remove gratuitous Context wrapper 2017-07-02 21:17:04 -04:00
Oliver Steele
2e8f51ad06 Rename to match Liquid terminology
Add* Register*
ControlTag / StartTag -> Block
2017-07-02 13:31:34 -04:00
Oliver Steele
decd8dd610 for over a map iterates over its keys 2017-07-02 12:14:04 -04:00
Oliver Steele
8f148dca69 tavis uses makefile lint 2017-07-02 09:09:23 -04:00
Oliver Steele
6297319033 Add coverage status 2017-07-02 08:47:10 -04:00
Oliver Steele
28db29801a gometalinter doesn't have a config in this repo 2017-07-02 08:38:31 -04:00
Oliver Steele
78526e7cb3 Coverage 2017-07-02 08:35:06 -04:00
Oliver Steele
008f1ed03f Add install-dev-toolsl to travis 2017-07-02 08:01:12 -04:00
Oliver Steele
c415f89ab9 Add goveralls to travis 2017-07-02 07:58:05 -04:00
Oliver Steele
caca7a2b60 Coverage 2017-07-02 07:51:24 -04:00
Oliver Steele
983b9f50e5 Add docs; remove unused UnimplementedError 2017-07-02 00:10:54 -04:00
Oliver Steele
d6bc456ee4 New top-level Context wrapper 2017-07-01 23:52:38 -04:00
Oliver Steele
e71bc95d5f Lint 2017-07-01 23:52:23 -04:00
Oliver Steele
d29e4b207b README 2017-07-01 20:24:27 -04:00
Oliver Steele
f6c4299739 Simplify external tag interface 2017-07-01 10:36:47 -04:00
Oliver Steele
a3c646cea2 slice, truncate use runes not bytes 2017-07-01 10:02:00 -04:00
Oliver Steele
a7cbb9b01b Replace GetVariableMap -> UpdateBindings, RenderFile 2017-06-30 21:05:48 -04:00
Oliver Steele
7c48138dad Add RenderContext.ParseTagArgs 2017-06-30 17:33:36 -04:00
Oliver Steele
af95c44a25 simplify 2017-06-30 16:51:39 -04:00
Oliver Steele
e6f8eacb37 Tags are an engine configuration 2017-06-30 16:46:17 -04:00
Oliver Steele
2e9903ffe6 Filters are an engine configuration 2017-06-30 16:13:18 -04:00
Oliver Steele
41da3f9d05 Tags are called within a RenderContext 2017-06-30 14:51:21 -04:00
Oliver Steele
25e97ed864 Uh-oh – strftime gets the day of week wrong!
Temp out some test cases.
2017-06-30 12:17:01 -04:00
Oliver Steele
9dda87f40f contains operates on strings not arrays 2017-06-30 11:21:10 -04:00
Oliver Steele
ebc29dcbed Separate interface.go from engine.go 2017-06-30 11:20:32 -04:00
Oliver Steele
247bec3376 Use C strptime to format dates 2017-06-30 10:09:56 -04:00
Oliver Steele
e2bb7c66bb Fix the raw tag 2017-06-30 10:09:56 -04:00
Oliver Steele
08fcc4eafc Record source line number 2017-06-30 10:09:56 -04:00
Oliver Steele
6075f39527 Convert map -> [] 2017-06-30 10:09:56 -04:00
Oliver Steele
8f7bcaedae Add engine.DefineControlTag; currently does nothing 2017-06-30 08:04:31 -04:00
Oliver Steele
767f1f421b Convert -> map[string] 2017-06-30 08:03:55 -04:00
Oliver Steele
8ea72e4300 Add strptime for time parsing 2017-06-29 21:53:11 -04:00
Oliver Steele
2fed70b8d0 Convert maps 2017-06-29 21:21:52 -04:00
Oliver Steele
63e2c5c92a Implement obj['name'] 2017-06-29 14:21:06 -04:00
Oliver Steele
394036de6c Fix forloop.last with offset modifier 2017-06-29 13:59:37 -04:00
Oliver Steele
d924e0b7eb Match print object to observed 2017-06-29 13:41:26 -04:00
Oliver Steele
6a8127a707 Match split filter to observed 2017-06-29 13:41:04 -04:00
Oliver Steele
09d36504b4 Lint 2017-06-29 13:14:47 -04:00
Oliver Steele
f15de87195 Docs 2017-06-29 13:08:25 -04:00
Oliver Steele
fb26bb3f88 Lint; remove dead code 2017-06-29 12:26:04 -04:00
Oliver Steele
a1784cd5d2 Implement break, continue 2017-06-29 12:20:16 -04:00
Oliver Steele
fc227aadc3 Work around missing %-H in strftime 2017-06-29 11:30:43 -04:00
Oliver Steele
97b36abe95 Add more dependencies to credits 2017-06-29 11:15:13 -04:00
Oliver Steele
80d58dcd5f Add MustConvertItem; convert bool -> int 2017-06-29 09:35:42 -04:00
Oliver Steele
4df3f04aae Convert returns an error; create MustConvert 2017-06-29 08:42:24 -04:00