Skip to content

Instantly share code, notes, and snippets.

@toolmantim
Created February 26, 2010 00:11
Show Gist options
  • Select an option

  • Save toolmantim/315222 to your computer and use it in GitHub Desktop.

Select an option

Save toolmantim/315222 to your computer and use it in GitHub Desktop.
module Haml
module Filters
module Coffeescript
include Base
def render_with_options(text, options)
<<END
<script type=#{options[:attr_wrapper]}text/coffeescript#{options[:attr_wrapper]}>
#{text.rstrip.gsub("\n", "\n ")}
</script>
END
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment