lib/webgen/content_processor/erb.rb in webgen-1.0.0.beta1 vs lib/webgen/content_processor/erb.rb in webgen-1.0.0.beta2

- old
+ new

@@ -11,10 +11,10 @@ extend ERB::Util # Process the Ruby statements embedded in the content of +context+. def self.call(context) - erb = ERB.new(context.content) + erb = ERB.new(context.content, nil, context.website.config['content_processor.erb.trim_mode']) erb.filename = context.ref_node.alcn context.content = erb.result(binding) context end