2010-04-24 17:43:32 +00:00
|
|
|
def example_haml
|
2010-01-27 06:08:13 +00:00
|
|
|
markup_item = @item.children.detect{|child| child.identifier =~ /markup/}
|
2010-04-24 17:43:32 +00:00
|
|
|
markup_item.reps.find { |r| r.name == :default }.content_at_snapshot(:raw)
|
|
|
|
end
|
|
|
|
|
|
|
|
def example_html
|
|
|
|
Haml::Engine.new(example_haml).render
|
2010-01-27 06:08:13 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def example_sass
|
|
|
|
markup_item = @item.children.detect{|child| child.identifier =~ /stylesheet/}
|
|
|
|
markup_item.reps.find { |r| r.name == :default }.content_at_snapshot(:raw)
|
|
|
|
end
|
|
|
|
|
2010-04-24 17:43:32 +00:00
|
|
|
def example_scss
|
|
|
|
Sass::Engine.new(example_sass).to_tree.to_scss
|
|
|
|
end
|
|
|
|
|
2010-01-27 06:08:13 +00:00
|
|
|
def example_css
|
|
|
|
Sass::Engine.new(example_sass, Compass.sass_engine_options.merge(:line_comments => false)).render
|
|
|
|
end
|