Use super rather than render_all in single block render classes.

This commit is contained in:
Dylan Thacker-Smith
2014-02-27 21:38:49 -05:00
parent 9ee4573ef4
commit f89046e81f
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ module Liquid
col += 1
result << "<td class=\"col#{col}\">" << render_all(@nodelist, context) << '</td>'
result << "<td class=\"col#{col}\">" << super << '</td>'
if col == cols and (index != length - 1)
col = 0

View File

@@ -4,7 +4,7 @@ module Liquid
def render(context)
context.stack do
output = render_all(@nodelist, context)
output = super
if output != context.registers[:ifchanged]
context.registers[:ifchanged] = output