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

12 lines
462 B
Plaintext

- 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
%a(href="/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