File: example.haml

package info (click to toggle)
ruby-compass 0.12.2~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,308 kB
  • sloc: ruby: 10,474; makefile: 42; xml: 14
file content (25 lines) | stat: -rw-r--r-- 785 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- if @item[:stylesheet] && (reference = reference_item(:stylesheet => @item[:stylesheet]))
  #reference= link_to "Reference Documentation", reference

%h1 Demo: #{@item[:title]}
#demo= example_html

= yield if block_given?

#how
  %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)
  %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)