Permalink
Browse files

Remove haml_filter <script> tags in output

  • Loading branch information...
1 parent f511ab0 commit 6c225ca3cc12d4a3b1de1d6c081544c80d0b7ab1 @codepuzzle committed Feb 29, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 lib/barista/haml_filter.rb
View
@@ -15,11 +15,12 @@ def render_with_options(text, options)
inner = Barista::Compiler.compile(text)
end
output = []
- output << "<script type=#{options[:attr_wrapper]}#{content_type(type)}#{options[:attr_wrapper]}>"
- output << " #{cdata_wrapper % '<![CDATA['}"
+ # We need blank coffeescript output for our use-case
+ #output << "<script type=#{options[:attr_wrapper]}#{content_type(type)}#{options[:attr_wrapper]}>"
+ #output << " #{cdata_wrapper % '<![CDATA['}"
output << " #{inner}".rstrip.gsub("\n", "\n ")
- output << " #{cdata_wrapper % ']]>'}"
- output << "</script>"
+ #output << " #{cdata_wrapper % ']]>'}"
+ #output << "</script>"
output.join("\n")
end
@@ -40,4 +41,4 @@ def self.setup
end
end
end
-end
+end

0 comments on commit 6c225ca

Please sign in to comment.