1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-30 10:59:04 +01:00
Commit Graph

152 Commits

Author SHA1 Message Date
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
Oliver Steele
e2fd3bbf81 SortByProperty can sort nil first or last 2017-06-29 08:22:12 -04:00
Oliver Steele
c4ff3d2083 Rationalize some filenames 2017-06-29 07:54:31 -04:00
Oliver Steele
621992c6af If tag parses during parse stage 2017-06-28 22:22:07 -04:00
Oliver Steele
5dddabeb78 Parse control tag forms at parse time 2017-06-28 21:45:24 -04:00
Oliver Steele
61663ab11a Control tag parsers can return an error 2017-06-28 20:59:23 -04:00
Oliver Steele
e9c35a35d0 Implement forloop variables 2017-06-28 20:49:38 -04:00
Oliver Steele
3a1506badf Add an type filter; inspect is more robust 2017-06-28 20:49:27 -04:00
Oliver Steele
6c56efdd51 Implement <=, >=, contains 2017-06-28 17:18:48 -04:00
Oliver Steele
5ec1f66a88 Implement remaining numeric filters 2017-06-28 16:43:18 -04:00
Oliver Steele
53a41f3df2 Implement loop modifiers 2017-06-28 16:18:46 -04:00
Oliver Steele
c5e7e6c277 Implement case (w/out else) 2017-06-28 16:18:46 -04:00
Oliver Steele
c433c0894e More filters 2017-06-28 15:33:13 -04:00
Oliver Steele
af8c48608e Allow - in identifiers 2017-06-28 15:33:04 -04:00
Oliver Steele
910d4b25cb More filters 2017-06-28 14:41:46 -04:00
Oliver Steele
607f4f413f Allow parens 2017-06-28 13:53:37 -04:00
Oliver Steele
055e789d1d Implement capture tag 2017-06-28 13:47:49 -04:00
Oliver Steele
1630af7664 Implement a big chunk of filters 2017-06-28 13:28:55 -04:00
Oliver Steele
a93848a95e Filters support multiple argument, including expressions 2017-06-28 11:24:24 -04:00
Oliver Steele
c648a7030f Implement ar.first, ar.list 2017-06-28 09:50:04 -04:00
Oliver Steele
a4b1835d2c README links to godoc 2017-06-28 09:45:20 -04:00
Oliver Steele
dbdcca4319 Finish generic comparison 2017-06-28 09:36:39 -04:00
Oliver Steele
229059c169 Fix generic equality with nil 2017-06-27 22:54:27 -04:00
Oliver Steele
f8b55032f4 Chunk regex wasn't sufficiently non-greedy 2017-06-27 22:34:46 -04:00
Oliver Steele
43bedef367 More generic.Less; tests 2017-06-27 21:30:47 -04:00
Oliver Steele
2083747c7d Generic Convert handles conversion to time 2017-06-27 20:56:17 -04:00
Oliver Steele
c1fd00c261 Negative integer indexes from end of list 2017-06-27 20:32:55 -04:00
Oliver Steele
d4c895d635 Parse object expressions during parse stage; report error source 2017-06-27 20:23:09 -04:00
Oliver Steele
3dba4eeb10 Makefile default target is ci 2017-06-27 18:10:12 -04:00
Oliver Steele
ac12225247 Add references to README 2017-06-27 18:06:26 -04:00