From c05807ce31d6f1105d78d575b427c7f8e5a85b18 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 23 Jan 2010 19:44:22 -0800 Subject: [PATCH] Extract an imports partial. --- doc-src/content/reference/blueprint.haml | 6 +----- doc-src/layouts/partials/reference/imports.haml | 6 ++++++ doc-src/layouts/partials/reference/imports.yaml | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 doc-src/layouts/partials/reference/imports.haml create mode 100644 doc-src/layouts/partials/reference/imports.yaml diff --git a/doc-src/content/reference/blueprint.haml b/doc-src/content/reference/blueprint.haml index c8e7815e..72a89c10 100644 --- a/doc-src/content/reference/blueprint.haml +++ b/doc-src/content/reference/blueprint.haml @@ -6,11 +6,7 @@ a single mixin, +blueprint, 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 diff --git a/doc-src/layouts/partials/reference/imports.haml b/doc-src/layouts/partials/reference/imports.haml new file mode 100644 index 00000000..ee2d9948 --- /dev/null +++ b/doc-src/layouts/partials/reference/imports.haml @@ -0,0 +1,6 @@ +- if (imported_libs = imports(@item)).any? + %h2 Imports + + %ol + - imported_libs.each do |import| + %li= import diff --git a/doc-src/layouts/partials/reference/imports.yaml b/doc-src/layouts/partials/reference/imports.yaml new file mode 100644 index 00000000..2fbf0ffd --- /dev/null +++ b/doc-src/layouts/partials/reference/imports.yaml @@ -0,0 +1 @@ +--- {}