Created
November 12, 2011 09:48
-
-
Save whizcreed/1360317 to your computer and use it in GitHub Desktop.
HAML filter for comatose cms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HAML Text Filter | |
TextFilters.define :haml, "HAML" do | |
require 'haml' | |
def render_text(text) | |
engine = Haml::Engine.new(text) | |
engine.render | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment