liquid without the garbage

This commit is contained in:
Florian Weingarten
2019-04-17 14:07:10 +01:00
parent c2ef247be5
commit 2a1ca3152d
25 changed files with 144 additions and 101 deletions

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

View File

@@ -21,7 +21,7 @@ class Paginate < Liquid::Block
end
end
def render(context)
def render(context, output = '')
@context = context
context.stack do