2010-03-17 15:42:40 +00:00
|
|
|
- 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-03-17 15:42:40 +00:00
|
|
|
%dl.constant-details.source-documentation
|
|
|
|
%dt Value
|
2010-04-25 05:43:58 +00:00
|
|
|
%dd
|
|
|
|
%code= constant_def.expr.to_sass(:format => :html)
|
2010-03-17 15:42:40 +00:00
|
|
|
- if constant_def.comment
|
|
|
|
%dt Description
|
|
|
|
%dd= format_doc constant_def.comment
|