Extract an imports partial.
This commit is contained in:
parent
92327eece7
commit
c05807ce31
@ -6,11 +6,7 @@
|
||||
a single mixin, <code class="mixin">+blueprint</code>, that
|
||||
can be used to generate the blueprint css styles.
|
||||
|
||||
%h2 Imports
|
||||
|
||||
%ol
|
||||
- imports(@item).each do |import|
|
||||
%li= import
|
||||
= render "partials/reference/imports"
|
||||
|
||||
%h2 Mixins
|
||||
|
||||
|
6
doc-src/layouts/partials/reference/imports.haml
Normal file
6
doc-src/layouts/partials/reference/imports.haml
Normal file
@ -0,0 +1,6 @@
|
||||
- if (imported_libs = imports(@item)).any?
|
||||
%h2 Imports
|
||||
|
||||
%ol
|
||||
- imported_libs.each do |import|
|
||||
%li= import
|
1
doc-src/layouts/partials/reference/imports.yaml
Normal file
1
doc-src/layouts/partials/reference/imports.yaml
Normal file
@ -0,0 +1 @@
|
||||
--- {}
|
Loading…
Reference in New Issue
Block a user