padrino-framework: Misbehavior of Slim, content_tag and html_safe
Here’s a strange test case for Padrino console
include Padrino::Helpers::OutputHelpers
include Padrino::Helpers::TagHelpers
> Slim::Template.new{ "= content_tag( :div, content_tag(:i) )" }.render
=> "<div><i></i></div>"
> Slim::Template.new{ "= content_tag( :div ) do\n = content_tag(:i)" }.render
=> "<div><i></i></div>"
Is it expected behavior or failed processing of block in content_tag?
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 16 (16 by maintainers)
Yes, there is. see the readme. Set the option :generator => Temple::Generators::RailsOutputBuffer