Skip to content

Instantly share code, notes, and snippets.

@myobie
Created April 21, 2009 00:01
Show Gist options
  • Save myobie/98852 to your computer and use it in GitHub Desktop.
Save myobie/98852 to your computer and use it in GitHub Desktop.
class Yellow < PostType
fields :one
html {
haml %Q{
%h1= get_attr(:one)
}.indents
}
end
yellow = Yellow.new "one: hello"
yellow.to_html.should == "<h1>hello</h1>\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment