Created
July 4, 2010 15:02
-
-
Save JoshCheek/463507 to your computer and use it in GitHub Desktop.
how to render haml
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
| require 'rubygems' | |
| require 'haml' | |
| @query = 'search term' | |
| puts Haml::Engine.new(<<HAML).render binding | |
| %p | |
| results found for | |
| %strong= @query | |
| HAML |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment