24 lines
1.0 KiB
Plaintext
24 lines
1.0 KiB
Plaintext
- if (mixin_defs = mixins(@item)).any?
|
|
%h2 Mixins
|
|
|
|
- mixin_defs.each do |mixin|
|
|
%span.view-source
|
|
View Source:
|
|
%a.view-source{:href=>"#", :onclick => "$('#mixin-#{mixin.name}-source .scss').removeClass('shown');$('#mixin-#{mixin.name}-source .sass').addClass('shown'); return false;"} Sass
|
|
\|
|
|
%a.view-source{:href=>"#", :onclick => "$('#mixin-#{mixin.name}-source .sass').removeClass('shown');$('#mixin-#{mixin.name}-source .scss').addClass('shown'); return false;"} SCSS
|
|
%h3.mixin{:id=>"mixin-#{mixin.name}"}
|
|
%a.permalink{:href => "#mixin-#{mixin.name}"}= mixin_signature(mixin)
|
|
.mixin-source{:id=>"mixin-#{mixin.name}-source"}
|
|
%pre.sass= mixin.to_sass
|
|
%pre.scss= mixin.to_scss
|
|
|
|
.source-documentation
|
|
= format_doc(mixin.comment)
|
|
- if (examples = examples(@item, mixin)).any?
|
|
%dl.examples
|
|
- examples.each do |example|
|
|
%dt= link_to example.item[:title], example
|
|
- if example.item[:description]
|
|
%dd= example.item[:description]
|