File: functions.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 (19 lines) | stat: -rw-r--r-- 796 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
- if (functions = functions(@item)).any?
  %h2 Functions

  - functions.each do |function|
    %a{:href=>"#function-#{function.name}-source", :rel => "view source"} view source
    %h3.function{:id=>"function-#{function.name}"}
      %a.permalink{:href => "#function-#{function.name}"}= function.sass_signature(:html)
    .function-source{:id=>"function-#{function.name}-source"}
      %pre.source-code.sass= function.to_sass
      %pre.source-code.scss= function.to_scss

    .source-documentation
      = format_doc(function.comment)
      - if (examples = examples(@item, function)).any?
        %dl.examples
          - examples.each do |example|
            %dt= link_to example.item[:title], example
            - if example.item[:description]
              %dd= example.item[:description]