1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-27 04:46:31 +01:00
Commit Graph

40 Commits

Author SHA1 Message Date
Oliver Steele
c17c901385 Merge pull request #26 from Proximaio/feature/customise_delimiters
Add setting to customise delimiters
2017-07-27 18:09:33 -04:00
James Littlejohn
b7ef67f047 Support delimiters of any length 2017-07-24 12:38:02 +10:00
James Littlejohn
dd4d967eaa Add comments and update tests 2017-07-24 11:00:05 +10:00
Oliver Steele
51517990c9 Add engine.ParseString 2017-07-22 08:03:48 -04:00
James Littlejohn
9dd9191ca0 Add setting to customise delimiters 2017-07-21 12:32:06 +10:00
Oliver Steele
41e7b29ba2 TIL io.WriteString 2017-07-15 21:13:21 -04:00
Oliver Steele
92a4f2d500 Source location is an initialization parameter
Fixes a race condition
2017-07-14 10:38:30 -04:00
Oliver Steele
16c3b6ea59 Add ParseTemplateLocation 2017-07-14 10:17:34 -04:00
Oliver Steele
bfc7ced272 Reorganize docs and examples 2017-07-13 20:25:12 -04:00
Oliver Steele
378c0b207e Update remaining public API to return SourceError 2017-07-10 11:52:14 -04:00
Oliver Steele
342a8b3e81 errors return source location, phase 1 2017-07-10 11:49:14 -04:00
Oliver Steele
163290b5d4 docs 2017-07-10 09:38:46 -04:00
Oliver Steele
ebb37f83df Change Engine, Template from Interface -> struct 2017-07-10 09:16:35 -04:00
Oliver Steele
328d84f5cd comments 2017-07-10 08:03:31 -04:00
Oliver Steele
635383bd92 gopkg; docs 2017-07-09 23:15:05 -04:00
Oliver Steele
846987d86a simplify 2017-07-07 07:30:32 -04:00
Oliver Steele
c599761c6a simplify 2017-07-07 05:51:40 -04:00
Oliver Steele
903acb8d2e Split package render->parser 2017-07-07 05:51:40 -04:00
Oliver Steele
c7d9af2fcc Start to separate parser and compiler 2017-07-06 08:07:53 -04:00
Oliver Steele
5425668094 Add Template.SetSourcePath 2017-07-04 16:48:38 -04:00
Oliver Steele
411a2f0708 Rename render.(Context,RenderContext) -> (NodeContext,Context) 2017-07-04 11:41:45 -04:00
Oliver Steele
405c5bf694 Rename Settings -> Config 2017-07-04 11:08:57 -04:00
Oliver Steele
6161e6df28 Move chunks -> render 2017-07-04 11:03:18 -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
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
d6bc456ee4 New top-level Context wrapper 2017-07-01 23:52:38 -04:00
Oliver Steele
f6c4299739 Simplify external tag interface 2017-07-01 10:36:47 -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
ebc29dcbed Separate interface.go from engine.go 2017-06-30 11:20:32 -04:00
Oliver Steele
8f7bcaedae Add engine.DefineControlTag; currently does nothing 2017-06-30 08:04:31 -04:00
Oliver Steele
f15de87195 Docs 2017-06-29 13:08:25 -04:00
Oliver Steele
e9c35a35d0 Implement forloop variables 2017-06-28 20:49:38 -04:00
Oliver Steele
a4b1835d2c README links to godoc 2017-06-28 09:45:20 -04:00
Oliver Steele
d849e74d1d Implement filters: default; date (w/out format) 2017-06-27 16:02:05 -04:00
Oliver Steele
4189f03261 Move filters to own package 2017-06-27 12:06:24 -04:00
Oliver Steele
e21d2a736d Add public DefineTag 2017-06-27 07:43:42 -04:00