compass/doc-src/layouts/partials/example.haml

26 lines
785 B
Plaintext
Raw Normal View History

- if @item[:stylesheet] && (reference = reference_item(:stylesheet => @item[:stylesheet]))
#reference= link_to "Reference Documentation", reference
2010-04-24 17:43:32 +00:00
%h1 Demo: #{@item[:title]}
#demo= example_html
2010-01-27 06:08:13 +00:00
= yield if block_given?
2010-04-24 17:43:32 +00:00
#how
2010-04-27 00:04:55 +00:00
%section#markup
.syntax_pref
%a{:href => "#", :rel => "html" } html
%a{:href => "#", :rel => "haml" } haml
.example-source
%pre.source-code.html= h(example_html)
%pre.source-code.haml= h(example_haml)
2010-04-27 00:04:55 +00:00
%section#styles
.syntax_pref
%a{:href => "#", :rel => "scss" } scss
%a{:href => "#", :rel => "sass" } sass
%a{:href => "#", :rel => "css" } css
.example-source
%pre.source-code.scss= h(example_scss)
%pre.source-code.sass= h(example_sass)
%pre.source-code.css= h(example_css)