File: const_table.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 (7 lines) | stat: -rw-r--r-- 356 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
- constants.each do |constant_def|
  - const_id = constant_def.name.gsub(/_/,'-')
  %h3.constant{:id=>"const-#{const_id}"}
    %a.permalink{:href => "#const-#{const_id}"}= "$"+constant_def.name
    %code= constant_def.expr.to_sass(:format => :html)
  - if constant_def.comment && constant_def.comment.strip.size > 0
    %p= format_doc constant_def.comment