2010-01-24 03:47:28 +00:00
|
|
|
- if (mixin_defs = mixins(@item)).any?
|
|
|
|
%h2 Mixins
|
|
|
|
|
|
|
|
- mixin_defs.each do |mixin|
|
2010-04-25 09:55:23 +00:00
|
|
|
%span.view-source
|
|
|
|
View Source:
|
2010-04-26 23:42:46 +00:00
|
|
|
%a.view-source{:href=>"#mixin-#{mixin.name}-sass"} Sass
|
2010-04-25 09:55:23 +00:00
|
|
|
\|
|
2010-04-26 23:42:46 +00:00
|
|
|
%a.view-source{:href=>"#mixin-#{mixin.name}-scss"} SCSS
|
2010-01-24 03:47:28 +00:00
|
|
|
%h3.mixin{:id=>"mixin-#{mixin.name}"}
|
2010-04-25 09:55:23 +00:00
|
|
|
%a.permalink{:href => "#mixin-#{mixin.name}"}= mixin_signature(mixin)
|
|
|
|
.mixin-source{:id=>"mixin-#{mixin.name}-source"}
|
2010-11-15 22:41:45 +00:00
|
|
|
.elided-code{:id=>"mixin-#{mixin.name}-sass"}
|
|
|
|
%pre.source-code.sass= mixin.to_sass
|
|
|
|
.elided-code{:id=>"mixin-#{mixin.name}-scss"}
|
|
|
|
%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)
|
2010-01-31 00:20:03 +00:00
|
|
|
- if (examples = examples(@item, mixin)).any?
|
2010-01-27 06:08:13 +00:00
|
|
|
%dl.examples
|
|
|
|
- examples.each do |example|
|
2010-04-25 07:11:28 +00:00
|
|
|
%dt= link_to example.item[:title], example
|
2010-01-27 06:08:13 +00:00
|
|
|
- if example.item[:description]
|
|
|
|
%dd= example.item[:description]
|