compass/doc-src/layouts/partials/reference/const_table.haml

8 lines
356 B
Plaintext
Raw Normal View History

- constants.each do |constant_def|
- const_id = constant_def.name.gsub(/_/,'-')
%h3.constant{:id=>"const-#{const_id}"}
2010-04-25 05:43:58 +00:00
%a.permalink{:href => "#const-#{const_id}"}= "$"+constant_def.name
2010-11-23 06:09:18 +00:00
%code= constant_def.expr.to_sass(:format => :html)
- if constant_def.comment && constant_def.comment.strip.size > 0
%p= format_doc constant_def.comment