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

20 lines
751 B
Plaintext
Raw Normal View History

2010-01-24 03:47:28 +00:00
- if (mixin_defs = mixins(@item)).any?
%h2 Mixins
- mixin_defs.each do |mixin|
2010-11-23 06:09:18 +00:00
%a{:href=>"#mixin-#{mixin.name}-source", :rel => "view source"} view source
2010-01-24 03:47:28 +00:00
%h3.mixin{:id=>"mixin-#{mixin.name}"}
2011-01-02 20:34:16 +00:00
%a.permalink{:href => "#mixin-#{mixin.name}"}= mixin.sass_signature(:none, :html)
2010-04-25 09:55:23 +00:00
.mixin-source{:id=>"mixin-#{mixin.name}-source"}
2010-11-23 06:09:18 +00:00
%pre.source-code.sass= mixin.to_sass
%pre.source-code.scss= mixin.to_scss
2010-01-24 03:47:28 +00:00
2010-01-27 06:08:13 +00:00
.source-documentation
= format_doc(mixin.comment)
- if (examples = examples(@item, mixin)).any?
2010-01-27 06:08:13 +00:00
%dl.examples
- examples.each do |example|
%dt= link_to example.item[:title], example
2010-01-27 06:08:13 +00:00
- if example.item[:description]
%dd= example.item[:description]