liquid without the garbage

This commit is contained in:
Florian Weingarten
2019-04-22 16:34:31 -04:00
parent c2ef247be5
commit 2a1ca3152d
25 changed files with 144 additions and 101 deletions
+4 -2
View File
@@ -12,7 +12,7 @@ class CommentForm < Liquid::Block
end
end
def render(context)
def render(context, output = '')
article = context[@variable_name]
context.stack do
@@ -23,7 +23,9 @@ class CommentForm < Liquid::Block
'email' => context['comment.email'],
'body' => context['comment.body']
}
wrap_in_form(article, render_all(@nodelist, context))
output << wrap_in_form(article, render_all(@nodelist, context, output))
output
end
end
+1 -1
View File
@@ -21,7 +21,7 @@ class Paginate < Liquid::Block
end
end
def render(context)
def render(context, output = '')
@context = context
context.stack do