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

12 lines
467 B
Plaintext
Raw Permalink Normal View History

- if (constant_defs = constants(@item)).any?
- variables = constant_defs.select{|d| d.guarded }
- constants = constant_defs.reject{|d| d.guarded }
- if variables.any?
%h2
Configurable Variables
2010-11-22 01:30:41 +00:00
%a(href="/help/tutorials/configurable-variables/" class="help") help
= render "partials/reference/const_table", :constants => variables
- if constants.any?
%h2 Constants
= render "partials/reference/const_table", :constants => constants