updated puts.rb to work with latest liquid and added different output based on character width

This commit is contained in:
Brandon Mathis 2012-05-22 16:29:43 -05:00
parent 8c7b727abf
commit 8e41dd777b

View File

@ -23,8 +23,14 @@ module Jekyll
end
def render(context)
puts ">>> {% puts %} <<<"
puts super.map(&:strip).join
# Use a block if label + output is wider than 80 characters
if super.length > 69
puts "{% puts %}"
puts super
puts "{% endputs %}"
else
puts "{% puts %} #{super}"
end
end
end
end