Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove haml_filter <script> tags in output

  • Loading branch information...
commit 6c225ca3cc12d4a3b1de1d6c081544c80d0b7ab1 1 parent f511ab0
@codepuzzle authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 lib/barista/haml_filter.rb
View
11 lib/barista/haml_filter.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.