middleman-core 3.1.0.beta.3 → 3.1.0.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/asset_hash.feature +135 -0
- data/features/asset_host.feature +56 -0
- data/features/automatic_image_sizes.feature +16 -0
- data/features/cache_buster.feature +42 -0
- data/features/coffee-script.feature +22 -0
- data/features/compass-sprites.feature +6 -0
- data/features/content_for.feature +16 -0
- data/features/directory_index.feature +67 -0
- data/features/fonts.feature +15 -0
- data/features/former_padrino_helpers.feature +27 -0
- data/features/gzip.feature +21 -0
- data/features/helpers_auto_javascript_include_tag.feature +27 -0
- data/features/helpers_auto_stylesheet_link_tag.feature +27 -0
- data/features/helpers_form_tag.feature +26 -0
- data/features/helpers_link_to.feature +152 -0
- data/features/helpers_lorem.feature +6 -0
- data/features/helpers_page_classes.feature +17 -0
- data/features/helpers_url_for.feature +152 -0
- data/features/i18n_builder.feature +148 -0
- data/features/i18n_force_locale.feature +13 -0
- data/features/i18n_preview.feature +230 -0
- data/features/ignore_already_minified.feature +47 -0
- data/features/liquid.feature +11 -0
- data/features/markdown.feature +13 -0
- data/features/markdown_redcarpet.feature +86 -0
- data/features/markdown_redcarpet_in_haml.feature +42 -0
- data/features/minify_css.feature +127 -0
- data/features/minify_javascript.feature +225 -0
- data/features/more-clean_build.feature +14 -0
- data/features/more-extensionless_text_files.feature +28 -0
- data/features/more-frontmatter_page_settings.feature +42 -0
- data/features/more-ignore.feature +62 -0
- data/features/more-implied_extensions.feature +42 -0
- data/features/more-instance_vars.feature +18 -0
- data/features/more-sitemap_traversal.feature +73 -0
- data/features/more-wildcard_page_helper.feature +10 -0
- data/features/nested_layouts.feature +55 -0
- data/features/partials.feature +46 -0
- data/features/partials_dir.feature +30 -0
- data/features/relative_assets.feature +136 -0
- data/features/sass-assets-paths.feature +11 -0
- data/features/sass_cache_path.feature +22 -0
- data/features/sass_partials.feature +54 -0
- data/features/scss-support.feature +12 -0
- data/features/slim.feature +69 -0
- data/features/stylus.feature +55 -0
- data/features/twitter-bootstrap-compile.feature +6 -0
- data/fixtures/asset-hash-app/config.rb +8 -0
- data/fixtures/asset-hash-app/lib/middleware.rb +16 -0
- data/fixtures/asset-hash-app/source/apple-touch-icon.png +0 -0
- data/fixtures/asset-hash-app/source/favicon.ico +0 -0
- data/fixtures/asset-hash-app/source/images/100px.gif +0 -0
- data/fixtures/asset-hash-app/source/images/100px.jpg +0 -0
- data/fixtures/asset-hash-app/source/images/100px.png +0 -0
- data/fixtures/asset-hash-app/source/index.html.erb +311 -0
- data/fixtures/asset-hash-app/source/javascripts/application.js +8 -0
- data/fixtures/asset-hash-app/source/layout.erb +18 -0
- data/fixtures/asset-hash-app/source/other.html.erb +2 -0
- data/fixtures/asset-hash-app/source/partials.html.erb +1 -0
- data/fixtures/asset-hash-app/source/stylesheets/_partial.sass +2 -0
- data/fixtures/asset-hash-app/source/stylesheets/site.css.scss +4 -0
- data/fixtures/asset-hash-app/source/stylesheets/uses_partials.css.sass +4 -0
- data/fixtures/asset-hash-app/source/subdir/index.html.erb +308 -0
- data/fixtures/asset-hash-host-app/config.rb +6 -0
- data/fixtures/asset-hash-host-app/source/images/100px.gif +0 -0
- data/fixtures/asset-hash-host-app/source/images/100px.jpg +0 -0
- data/fixtures/asset-hash-host-app/source/images/100px.png +0 -0
- data/fixtures/asset-hash-host-app/source/index.html.erb +6 -0
- data/fixtures/asset-hash-host-app/source/layout.erb +17 -0
- data/fixtures/asset-hash-host-app/source/other.html.erb +2 -0
- data/fixtures/asset-hash-host-app/source/stylesheets/site.css.scss +4 -0
- data/fixtures/asset-hash-host-app/source/subdir/index.html.erb +6 -0
- data/fixtures/asset-host-app/config.rb +0 -0
- data/fixtures/asset-host-app/source/.htaccess +1 -0
- data/fixtures/asset-host-app/source/asset_host.html.erb +1 -0
- data/fixtures/asset-host-app/source/images/blank.gif +0 -0
- data/fixtures/asset-host-app/source/stylesheets/asset_host.css.sass +3 -0
- data/fixtures/auto-css-app/config.rb +11 -0
- data/fixtures/auto-css-app/source/auto-css/auto-css.html.erb +1 -0
- data/fixtures/auto-css-app/source/auto-css/index.html.erb +1 -0
- data/fixtures/auto-css-app/source/auto-css/sub/auto-css.html.erb +1 -0
- data/fixtures/auto-css-app/source/auto-css.html.erb +1 -0
- data/fixtures/auto-css-app/source/stylesheets/auto-css/auto-css.css +3 -0
- data/fixtures/auto-css-app/source/stylesheets/auto-css/index.css +0 -0
- data/fixtures/auto-css-app/source/stylesheets/auto-css/sub/auto-css.css +3 -0
- data/fixtures/auto-css-app/source/stylesheets/auto-css.css +3 -0
- data/fixtures/auto-js-app/config.rb +11 -0
- data/fixtures/auto-js-app/source/auto-js/auto-js.html.erb +1 -0
- data/fixtures/auto-js-app/source/auto-js/index.html.erb +1 -0
- data/fixtures/auto-js-app/source/auto-js/sub/auto-js.html.erb +1 -0
- data/fixtures/auto-js-app/source/auto-js.html.erb +1 -0
- data/fixtures/auto-js-app/source/javascripts/auto-js/auto-js.js +1 -0
- data/fixtures/auto-js-app/source/javascripts/auto-js/index.js +1 -0
- data/fixtures/auto-js-app/source/javascripts/auto-js/sub/auto-js.js +1 -0
- data/fixtures/auto-js-app/source/javascripts/auto-js.js +1 -0
- data/fixtures/automatic-image-size-app/config.rb +0 -0
- data/fixtures/automatic-image-size-app/source/auto-image-sizes.html.erb +1 -0
- data/fixtures/automatic-image-size-app/source/images/blank.gif +0 -0
- data/fixtures/cache-buster-app/config.rb +0 -0
- data/fixtures/cache-buster-app/source/cache-buster.html.erb +3 -0
- data/fixtures/cache-buster-app/source/images/blank.gif +0 -0
- data/fixtures/cache-buster-app/source/stylesheets/relative_assets.css.sass +3 -0
- data/fixtures/cache-buster-app/source/stylesheets/site.css.sass +1 -0
- data/fixtures/clean-dir-app/config.rb +2 -0
- data/fixtures/clean-dir-app/source/about.html +1 -0
- data/fixtures/coffeescript-app/config.rb +0 -0
- data/fixtures/coffeescript-app/source/inline-coffeescript.html.haml +3 -0
- data/fixtures/coffeescript-app/source/javascripts/broken-coffee.js.coffee +3 -0
- data/fixtures/coffeescript-app/source/javascripts/coffee_test.js.coffee +3 -0
- data/fixtures/compass-sprites-app/config.rb +0 -0
- data/fixtures/compass-sprites-app/source/images/icon/arrow_down.png +0 -0
- data/fixtures/compass-sprites-app/source/images/icon/arrow_left.png +0 -0
- data/fixtures/compass-sprites-app/source/images/icon/arrow_right.png +0 -0
- data/fixtures/compass-sprites-app/source/images/icon/arrow_up.png +0 -0
- data/fixtures/compass-sprites-app/source/stylesheets/site.css.scss +3 -0
- data/fixtures/content-for-app/config.rb +7 -0
- data/fixtures/content-for-app/source/content_for_erb.html.erb +5 -0
- data/fixtures/content-for-app/source/content_for_haml.html.haml +4 -0
- data/fixtures/content-for-app/source/content_for_slim.html.slim +4 -0
- data/fixtures/content-for-app/source/layouts/content_for.erb +4 -0
- data/fixtures/default-partials-dir-app/source/_partial.html.erb +1 -0
- data/fixtures/default-partials-dir-app/source/index.html.erb +2 -0
- data/fixtures/different-engine-layout/source/index.html.str +1 -0
- data/fixtures/different-engine-partial/config.rb +0 -0
- data/fixtures/different-engine-partial/source/index.html.erb +1 -0
- data/fixtures/different-engine-partial/source/layouts/layout.erb +7 -0
- data/fixtures/different-engine-partial/source/shared/_footer.str +1 -0
- data/fixtures/different-engine-partial/source/shared/_header.erb +1 -0
- data/fixtures/fonts-app/config.rb +0 -0
- data/fixtures/fonts-app/source/fonts/StMarie-Thin.otf +0 -0
- data/fixtures/fonts-app/source/fonts/blank/blank.otf +0 -0
- data/fixtures/fonts-app/source/stylesheets/fonts.css.sass +5 -0
- data/fixtures/gzip-app/config.rb +1 -0
- data/fixtures/gzip-app/source/index.html +0 -0
- data/fixtures/gzip-app/source/javascripts/test.js +1 -0
- data/fixtures/gzip-app/source/stylesheets/test.css +1 -0
- data/fixtures/i18n-alt-root-app/locales/en.yml +4 -0
- data/fixtures/i18n-alt-root-app/locales/es.yml +7 -0
- data/fixtures/i18n-alt-root-app/source/lang_data/hello.html.erb +1 -0
- data/fixtures/i18n-alt-root-app/source/lang_data/index.html.erb +1 -0
- data/fixtures/i18n-alt-root-app/source/layout.erb +1 -0
- data/fixtures/i18n-default-app/locales/en.yml +4 -0
- data/fixtures/i18n-default-app/locales/es.yml +8 -0
- data/fixtures/i18n-default-app/source/localizable/index.html.erb +5 -0
- data/fixtures/i18n-force-locale/config.rb +13 -0
- data/fixtures/i18n-force-locale/locales/en.yml +3 -0
- data/fixtures/i18n-force-locale/locales/es.yml +3 -0
- data/fixtures/i18n-force-locale/locales/fr.yml +3 -0
- data/fixtures/i18n-force-locale/source/index.haml +2 -0
- data/fixtures/i18n-test-app/locales/en.yml +4 -0
- data/fixtures/i18n-test-app/locales/es.yml +8 -0
- data/fixtures/i18n-test-app/source/CNAME +1 -0
- data/fixtures/i18n-test-app/source/layout.erb +8 -0
- data/fixtures/i18n-test-app/source/localizable/hello.html.erb +1 -0
- data/fixtures/i18n-test-app/source/localizable/index.html.erb +1 -0
- data/fixtures/i18n-test-app/source/morning.en.html.erb +1 -0
- data/fixtures/i18n-test-app/source/morning.es.html.erb +1 -0
- data/fixtures/i18n-test-app/source/password.txt +1 -0
- data/fixtures/i18n-test-app/source/stylesheets/site.css +3 -0
- data/fixtures/indexable-app/config.rb +4 -0
- data/fixtures/indexable-app/source/.htpasswd +1 -0
- data/fixtures/liquid-app/config.rb +0 -0
- data/fixtures/liquid-app/data/test.yml +4 -0
- data/fixtures/liquid-app/data/test2.json +4 -0
- data/fixtures/liquid-app/source/_liquid_partial.liquid +1 -0
- data/fixtures/liquid-app/source/data2.html.liquid +2 -0
- data/fixtures/liquid-app/source/liquid_master.html.liquid +1 -0
- data/fixtures/lorem-app/config.rb +1 -0
- data/fixtures/lorem-app/source/lorem.html.erb +13 -0
- data/fixtures/markdown-app/config.rb +1 -0
- data/fixtures/markdown-app/source/autolink.html.markdown +5 -0
- data/fixtures/markdown-app/source/fenced_code_blocks.html.markdown +7 -0
- data/fixtures/markdown-app/source/hard_wrap.html.markdown +2 -0
- data/fixtures/markdown-app/source/images/blank.gif +0 -0
- data/fixtures/markdown-app/source/index.html.markdown +4 -0
- data/fixtures/markdown-app/source/no_intra_emphasis.html.markdown +5 -0
- data/fixtures/markdown-app/source/smarty_pants.html.markdown +5 -0
- data/fixtures/markdown-app/source/space_after_headers.html.markdown +5 -0
- data/fixtures/markdown-app/source/strikethrough.html.markdown +5 -0
- data/fixtures/markdown-app/source/superscript.html.markdown +5 -0
- data/fixtures/markdown-app/source/tables.html.markdown +8 -0
- data/fixtures/markdown-app/source/with_toc_data.html.markdown +3 -0
- data/fixtures/markdown-frontmatter-options-app/config.rb +1 -0
- data/fixtures/markdown-frontmatter-options-app/source/smarty_pants-default.html.markdown +5 -0
- data/fixtures/markdown-frontmatter-options-app/source/smarty_pants-off.html.markdown +7 -0
- data/fixtures/markdown-frontmatter-options-app/source/smarty_pants-on.html.markdown +7 -0
- data/fixtures/markdown-frontmatter-options-app/source/tables-default.html.markdown +8 -0
- data/fixtures/markdown-frontmatter-options-app/source/tables-off.html.markdown +10 -0
- data/fixtures/markdown-frontmatter-options-app/source/tables-on.html.markdown +10 -0
- data/fixtures/markdown-in-haml-app/config.rb +0 -0
- data/fixtures/markdown-in-haml-app/source/images/blank.gif +0 -0
- data/fixtures/markdown-in-haml-app/source/link_target.html.markdown +4 -0
- data/fixtures/minify-css-app/source/inline-css.html.haml +5 -0
- data/fixtures/minify-css-app/source/more-css/site.css +3 -0
- data/fixtures/minify-css-app/source/stylesheets/report.css +1 -0
- data/fixtures/minify-css-app/source/stylesheets/site.css.sass +5 -0
- data/fixtures/minify-js-app/config.rb +0 -0
- data/fixtures/minify-js-app/source/inline-coffeescript.html.haml +3 -0
- data/fixtures/minify-js-app/source/inline-js.html.haml +28 -0
- data/fixtures/minify-js-app/source/javascripts/coffee_test.js.coffee +3 -0
- data/fixtures/minify-js-app/source/javascripts/js_test.js +8 -0
- data/fixtures/minify-js-app/source/more-js/other.js +8 -0
- data/fixtures/more-extensionless-text-files-app/config.rb +1 -0
- data/fixtures/more-extensionless-text-files-app/source/CNAME +1 -0
- data/fixtures/more-extensionless-text-files-app/source/LICENSE +1 -0
- data/fixtures/more-extensionless-text-files-app/source/README +1 -0
- data/fixtures/more-extensionless-text-files-app/source/index.html +1 -0
- data/fixtures/more-frontmatter-settings-app/config.rb +4 -0
- data/fixtures/more-frontmatter-settings-app/source/alternate_layout.html.erb +5 -0
- data/fixtures/more-frontmatter-settings-app/source/ignored.html.erb +5 -0
- data/fixtures/more-frontmatter-settings-app/source/layouts/alternate.erb +3 -0
- data/fixtures/more-frontmatter-settings-app/source/no_index.html.erb +5 -0
- data/fixtures/more-ignore-app/source/about.html.erb +1 -0
- data/fixtures/more-ignore-app/source/images/icon/messages.png +0 -0
- data/fixtures/more-ignore-app/source/images/pic.png +0 -0
- data/fixtures/more-ignore-app/source/images/portrait.jpg +0 -0
- data/fixtures/more-ignore-app/source/index.html.erb +0 -0
- data/fixtures/more-ignore-app/source/plain.html +1 -0
- data/fixtures/more-ignore-app/source/reports/another.html +0 -0
- data/fixtures/more-ignore-app/source/reports/index.html +0 -0
- data/fixtures/more-implied-extensions-app/config.rb +0 -0
- data/fixtures/more-implied-extensions-app/source/javascripts/app.coffee +1 -0
- data/fixtures/more-implied-extensions-app/source/stylesheets/style.scss +3 -0
- data/fixtures/more-implied-extensions-app/source/stylesheets/style2.sass +3 -0
- data/fixtures/more-implied-extensions-app/source/stylesheets/style3.less +4 -0
- data/fixtures/more-implied-extensions-app/source/test.haml +4 -0
- data/fixtures/more-implied-extensions-app/source/test2.markdown +3 -0
- data/fixtures/more-implied-extensions-app/source/test3.slim +3 -0
- data/fixtures/more-implied-extensions-app/source/test4.liquid +1 -0
- data/fixtures/more-instance-vars-app/config.rb +0 -0
- data/fixtures/more-instance-vars-app/source/_vartial.erb +5 -0
- data/fixtures/more-instance-vars-app/source/instance-var-set.html.erb +2 -0
- data/fixtures/more-instance-vars-app/source/layout.erb +3 -0
- data/fixtures/more-instance-vars-app/source/no-instance-var.html.erb +1 -0
- data/fixtures/more-preview-app/config.rb +0 -0
- data/fixtures/more-preview-app/source/content.html.erb +1 -0
- data/fixtures/more-preview-app/source/layout.erb +1 -0
- data/fixtures/more-preview-app/source/stylesheets/_partial.sass +2 -0
- data/fixtures/more-preview-app/source/stylesheets/_partial2.css.sass +2 -0
- data/fixtures/more-preview-app/source/stylesheets/main.css.sass +4 -0
- data/fixtures/more-preview-app/source/stylesheets/main2.css.sass +4 -0
- data/fixtures/more-preview-app/source/stylesheets/plain.css.sass +2 -0
- data/fixtures/more-traversal-app/config.rb +7 -0
- data/fixtures/more-traversal-app/source/directory-indexed/sibling.html.erb +3 -0
- data/fixtures/more-traversal-app/source/directory-indexed/sibling2.html.erb +3 -0
- data/fixtures/more-traversal-app/source/directory-indexed/sub2/index.html.erb +0 -0
- data/fixtures/more-traversal-app/source/directory-indexed/sub3/deep.html.erb +0 -0
- data/fixtures/more-traversal-app/source/directory-indexed.html.erb +0 -0
- data/fixtures/more-traversal-app/source/index.html.erb +0 -0
- data/fixtures/more-traversal-app/source/layout.erb +21 -0
- data/fixtures/more-traversal-app/source/proxied.html.erb +0 -0
- data/fixtures/more-traversal-app/source/root.html.erb +0 -0
- data/fixtures/more-traversal-app/source/sub/index.html.erb +0 -0
- data/fixtures/more-traversal-app/source/sub/sibling.html.erb +0 -0
- data/fixtures/more-traversal-app/source/sub/sibling2.html.erb +0 -0
- data/fixtures/more-traversal-app/source/sub/sub2/index.html.erb +0 -0
- data/fixtures/more-traversal-app/source/sub/sub3/deep.html.erb +0 -0
- data/fixtures/nested-layout-app/config.rb +1 -0
- data/fixtures/nested-layout-app/source/another.html.markdown +7 -0
- data/fixtures/nested-layout-app/source/data-one.html.erb +5 -0
- data/fixtures/nested-layout-app/source/data-two.html.erb +5 -0
- data/fixtures/nested-layout-app/source/haml-test.html.markdown +7 -0
- data/fixtures/nested-layout-app/source/index.html.erb +6 -0
- data/fixtures/nested-layout-app/source/layouts/inner.erb +4 -0
- data/fixtures/nested-layout-app/source/layouts/inner_haml.haml +3 -0
- data/fixtures/nested-layout-app/source/layouts/inner_slim.slim +3 -0
- data/fixtures/nested-layout-app/source/layouts/master.erb +3 -0
- data/fixtures/nested-layout-app/source/layouts/master_haml.haml +3 -0
- data/fixtures/nested-layout-app/source/layouts/master_slim.slim +3 -0
- data/fixtures/nested-layout-app/source/layouts/outer.erb +4 -0
- data/fixtures/nested-layout-app/source/layouts/outer_haml.haml +3 -0
- data/fixtures/nested-layout-app/source/layouts/outer_slim.slim +3 -0
- data/fixtures/nested-layout-app/source/slim-test.html.markdown +7 -0
- data/fixtures/padrino-helpers-app/config.rb +0 -0
- data/fixtures/padrino-helpers-app/source/former_padrino_test.html.erb +6 -0
- data/fixtures/page-classes-app/config.rb +4 -0
- data/fixtures/page-classes-app/source/page-classes.html.erb +1 -0
- data/fixtures/page-classes-app/source/sub1/page-classes.html.erb +1 -0
- data/fixtures/page-classes-app/source/sub1/sub2/page-classes.html.erb +1 -0
- data/fixtures/partials-app/config.rb +0 -0
- data/fixtures/partials-app/source/_locals.erb +1 -0
- data/fixtures/partials-app/source/_main.erb +1 -0
- data/fixtures/partials-app/source/_main.str +1 -0
- data/fixtures/partials-app/source/index.html.erb +3 -0
- data/fixtures/partials-app/source/locals.html.erb +1 -0
- data/fixtures/partials-app/source/second.html.str +3 -0
- data/fixtures/partials-app/source/shared/_footer.erb +1 -0
- data/fixtures/partials-app/source/shared/_header.erb +1 -0
- data/fixtures/partials-app/source/shared/snippet.erb +1 -0
- data/fixtures/partials-app/source/sub/_local.erb +1 -0
- data/fixtures/partials-app/source/sub/index.html.erb +3 -0
- data/fixtures/partials-app/source/using_snippet.html.erb +1 -0
- data/fixtures/partials-dir-app/source/index.html.erb +2 -0
- data/fixtures/partials-dir-app/source/nested/partials/_partial.html.erb +1 -0
- data/fixtures/partials-dir-app/source/partials/_partial.html.erb +1 -0
- data/fixtures/passthrough-app/source/.htaccess +1 -0
- data/fixtures/passthrough-app/source/inline-coffeescript.html.haml +3 -0
- data/fixtures/passthrough-app/source/inline-css.html.haml +4 -0
- data/fixtures/passthrough-app/source/inline-js.html.haml +28 -0
- data/fixtures/passthrough-app/source/javascripts/coffee_test.js.coffee +3 -0
- data/fixtures/passthrough-app/source/javascripts/js_test.js +8 -0
- data/fixtures/passthrough-app/source/stylesheets/site.css.sass +1 -0
- data/fixtures/relative-app/config.rb +0 -0
- data/fixtures/relative-app/source/images/blank.gif +0 -0
- data/fixtures/relative-app/source/stylesheets/relative_assets.css.sass +3 -0
- data/fixtures/relative-assets-app/config.rb +1 -0
- data/fixtures/relative-assets-app/source/images/blank.gif +0 -0
- data/fixtures/relative-assets-app/source/img/blank.gif +0 -0
- data/fixtures/relative-assets-app/source/relative_image.html.erb +8 -0
- data/fixtures/relative-assets-app/source/stylesheets/relative_assets.css.sass +3 -0
- data/fixtures/sass-assets-path-app/assets/stylesheets/_shared-asset-sass.sass +1 -0
- data/fixtures/sass-assets-path-app/assets/stylesheets/_shared-asset.scss +1 -0
- data/fixtures/sass-assets-path-app/config.rb +4 -0
- data/fixtures/sass-assets-path-app/my-vendor/stylesheets/_partial.sass +2 -0
- data/fixtures/sass-assets-path-app/source/stylesheets/plain.css.sass +16 -0
- data/fixtures/sass-cache-path-custom-app/config.rb +3 -0
- data/fixtures/sass-cache-path-custom-app/source/stylesheets/plain.css.sass +4 -0
- data/fixtures/sass-cache-path-default-app/config.rb +3 -0
- data/fixtures/sass-cache-path-default-app/source/stylesheets/plain.css.sass +4 -0
- data/fixtures/scss-app/config.rb +0 -0
- data/fixtures/scss-app/source/stylesheets/layout.css.sass +2 -0
- data/fixtures/scss-app/source/stylesheets/site_scss.css.scss +1 -0
- data/fixtures/stylus-preview-app/config.rb +0 -0
- data/fixtures/stylus-preview-app/source/content.html.erb +1 -0
- data/fixtures/stylus-preview-app/source/layout.erb +1 -0
- data/fixtures/stylus-preview-app/source/stylesheets/_partial.styl +2 -0
- data/fixtures/stylus-preview-app/source/stylesheets/_partial2.css.styl +2 -0
- data/fixtures/stylus-preview-app/source/stylesheets/main.css.styl +4 -0
- data/fixtures/stylus-preview-app/source/stylesheets/main2.css.styl +4 -0
- data/fixtures/stylus-preview-app/source/stylesheets/plain.css.styl +2 -0
- data/fixtures/twitter-bootstrap-app/config.rb +0 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/.gitignore +36 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/.travis.yml +3 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/LICENSE +176 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/README.md +137 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/img/glyphicons-halflings-white.png +0 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/img/glyphicons-halflings.png +0 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/.jshintrc +10 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/README.md +112 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/bootstrap-alert.js +90 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/bootstrap-button.js +96 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/bootstrap-carousel.js +169 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/bootstrap-collapse.js +157 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/bootstrap-dropdown.js +100 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/bootstrap-modal.js +218 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/bootstrap-popover.js +98 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/bootstrap-scrollspy.js +151 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/bootstrap-tab.js +135 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/bootstrap-tooltip.js +275 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/bootstrap-transition.js +61 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/bootstrap-typeahead.js +285 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/index.html +54 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/phantom.js +63 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/server.js +14 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/unit/bootstrap-alert.js +56 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/unit/bootstrap-button.js +77 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/unit/bootstrap-carousel.js +28 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/unit/bootstrap-collapse.js +54 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/unit/bootstrap-dropdown.js +87 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/unit/bootstrap-modal.js +114 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/unit/bootstrap-phantom.js +21 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/unit/bootstrap-popover.js +93 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/unit/bootstrap-scrollspy.js +31 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/unit/bootstrap-tab.js +61 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/unit/bootstrap-tooltip.js +155 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/unit/bootstrap-transition.js +13 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/unit/bootstrap-typeahead.js +148 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/vendor/jquery.js +9252 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/vendor/qunit.css +232 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/js/tests/vendor/qunit.js +1510 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_accordion.less +33 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_alerts.less +58 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_breadcrumbs.less +24 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_button-groups.less +191 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_buttons.less +191 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_carousel.less +121 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_close.less +29 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_code.less +57 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_component-animations.less +20 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_dropdowns.less +143 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_forms.less +583 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_grid.less +5 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_hero-unit.less +22 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_labels-badges.less +55 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_layouts.less +17 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_mixins.less +646 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_modals.less +90 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_navbar.less +358 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_navs.less +363 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_pager.less +36 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_pagination.less +56 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_popovers.less +49 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_progress-bars.less +117 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_reset.less +131 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_responsive-1200px-min.less +26 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_responsive-767px-max.less +149 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_responsive-768px-979px.less +17 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_responsive-navbar.less +153 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_responsive-utilities.less +41 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_scaffolding.less +29 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_sprites.less +191 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_tables.less +176 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_thumbnails.less +47 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_tooltip.less +35 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_type.less +232 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_utilities.less +23 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_variables.less +206 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_wells.less +27 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/bootstrap.less +62 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/responsive.less +48 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/tests/css-tests.css +52 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/tests/css-tests.html +917 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/tests/forms.html +179 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/tests/navbar.html +108 -0
- data/fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/package.json +25 -0
- data/fixtures/wildcard-directory-index-app/config.rb +2 -0
- data/fixtures/wildcard-directory-index-app/source/admin/index.html.erb +1 -0
- data/fixtures/wildcard-directory-index-app/source/admin/page.html.erb +1 -0
- data/fixtures/wildcard-directory-index-app/source/index.html.erb +1 -0
- data/fixtures/wildcard-directory-index-app/source/layouts/admin.erb +2 -0
- data/fixtures/wildcard-directory-index-app/source/layouts/layout.erb +2 -0
- data/lib/middleman-core/cli/build.rb +8 -5
- data/lib/middleman-core/extensions.rb +0 -5
- data/lib/middleman-core/meta_pages/sitemap_resource.rb +2 -0
- data/lib/middleman-core/preview_server.rb +1 -1
- data/lib/middleman-core/templates/shared/Gemfile.tt +1 -1
- data/lib/middleman-core/util.rb +9 -7
- data/lib/middleman-core/version.rb +1 -1
- data/lib/middleman-core.rb +1 -0
- data/lib/middleman-more/core_extensions/compass.rb +75 -0
- data/lib/middleman-more/core_extensions/default_helpers.rb +235 -0
- data/lib/middleman-more/core_extensions/i18n.rb +182 -0
- data/lib/middleman-more/extensions/asset_hash.rb +114 -0
- data/lib/middleman-more/extensions/asset_host.rb +50 -0
- data/lib/middleman-more/extensions/automatic_image_sizes/fastimage.rb +287 -0
- data/lib/middleman-more/extensions/automatic_image_sizes.rb +42 -0
- data/lib/middleman-more/extensions/cache_buster.rb +56 -0
- data/lib/middleman-more/extensions/directory_indexes.rb +24 -0
- data/lib/middleman-more/extensions/gzip.rb +75 -0
- data/lib/middleman-more/extensions/lorem.rb +176 -0
- data/lib/middleman-more/extensions/minify_css.rb +77 -0
- data/lib/middleman-more/extensions/minify_javascript.rb +83 -0
- data/lib/middleman-more/extensions/relative_assets.rb +29 -0
- data/lib/middleman-more/templates/smacss/source/_footer.haml +1 -0
- data/lib/middleman-more/templates/smacss/source/index.html.haml +1 -0
- data/lib/middleman-more/templates/smacss/source/layouts/layout.haml +13 -0
- data/lib/middleman-more/templates/smacss/source/stylesheets/base/README.markdown +11 -0
- data/lib/middleman-more/templates/smacss/source/stylesheets/base/base.scss +1 -0
- data/lib/middleman-more/templates/smacss/source/stylesheets/base/normalize.scss +375 -0
- data/lib/middleman-more/templates/smacss/source/stylesheets/layout/README.markdown +9 -0
- data/lib/middleman-more/templates/smacss/source/stylesheets/modules/README.markdown +9 -0
- data/lib/middleman-more/templates/smacss/source/stylesheets/states/README.markdown +12 -0
- data/lib/middleman-more/templates/smacss/source/stylesheets/style.css.scss +12 -0
- data/lib/middleman-more/templates/smacss.rb +30 -0
- data/lib/middleman-more.rb +102 -0
- data/middleman-core.gemspec +4 -1
- metadata +885 -7
- data/.cane +0 -2
- data/.cane-exclusions.yml +0 -5
@@ -0,0 +1,136 @@
|
|
1
|
+
Feature: Relative Assets
|
2
|
+
In order easily switch between relative and absolute paths
|
3
|
+
|
4
|
+
Scenario: Previewing css with the feature disabled
|
5
|
+
Given "relative_assets" feature is "disabled"
|
6
|
+
And the Server is running at "relative-assets-app"
|
7
|
+
When I go to "/stylesheets/relative_assets.css"
|
8
|
+
Then I should not see "url('../"
|
9
|
+
And I should see "/images/blank.gif')"
|
10
|
+
|
11
|
+
Scenario: Building css with the feature disabled
|
12
|
+
Given a fixture app "relative-assets-app"
|
13
|
+
And a file named "config.rb" with:
|
14
|
+
"""
|
15
|
+
"""
|
16
|
+
Given a successfully built app at "relative-assets-app"
|
17
|
+
When I cd to "build"
|
18
|
+
Then the file "stylesheets/relative_assets.css" should contain "url('/images/blank.gif')"
|
19
|
+
|
20
|
+
Scenario: Rendering html with the feature disabled
|
21
|
+
Given "relative_assets" feature is "disabled"
|
22
|
+
And the Server is running at "relative-assets-app"
|
23
|
+
When I go to "/relative_image.html"
|
24
|
+
Then I should see "/images/blank.gif"
|
25
|
+
|
26
|
+
Scenario: Rendering css with the feature enabled
|
27
|
+
Given "relative_assets" feature is "enabled"
|
28
|
+
And the Server is running at "relative-assets-app"
|
29
|
+
When I go to "/stylesheets/relative_assets.css"
|
30
|
+
Then I should see "url('../images/blank.gif"
|
31
|
+
|
32
|
+
Scenario: Building css with the feature enabled
|
33
|
+
Given a fixture app "relative-assets-app"
|
34
|
+
And a file named "config.rb" with:
|
35
|
+
"""
|
36
|
+
activate :relative_assets
|
37
|
+
"""
|
38
|
+
Given a successfully built app at "relative-assets-app"
|
39
|
+
When I cd to "build"
|
40
|
+
Then the file "stylesheets/relative_assets.css" should contain "url('../images/blank.gif')"
|
41
|
+
|
42
|
+
Scenario: Relative css reference with directory indexes
|
43
|
+
Given a fixture app "relative-assets-app"
|
44
|
+
And a file named "config.rb" with:
|
45
|
+
"""
|
46
|
+
activate :directory_indexes
|
47
|
+
activate :relative_assets
|
48
|
+
"""
|
49
|
+
Given a successfully built app at "relative-assets-app"
|
50
|
+
When I cd to "build"
|
51
|
+
Then the file "relative_image/index.html" should contain "../stylesheets/relative_assets.css"
|
52
|
+
|
53
|
+
Scenario: Rendering html with the feature enabled
|
54
|
+
Given "relative_assets" feature is "enabled"
|
55
|
+
And the Server is running at "relative-assets-app"
|
56
|
+
When I go to "/relative_image.html"
|
57
|
+
Then I should not see "/images/blank.gif"
|
58
|
+
And I should see "images/blank.gif"
|
59
|
+
|
60
|
+
Scenario: Rendering css with a custom images_dir
|
61
|
+
Given "relative_assets" feature is "enabled"
|
62
|
+
And "images_dir" is set to "img"
|
63
|
+
And the Server is running at "relative-assets-app"
|
64
|
+
When I go to "/stylesheets/relative_assets.css"
|
65
|
+
Then I should see "url('../img/blank.gif')"
|
66
|
+
|
67
|
+
Scenario: Building css with a custom images_dir
|
68
|
+
Given a fixture app "relative-assets-app"
|
69
|
+
And a file named "config.rb" with:
|
70
|
+
"""
|
71
|
+
set :images_dir, "img"
|
72
|
+
activate :relative_assets
|
73
|
+
"""
|
74
|
+
Given a successfully built app at "relative-assets-app"
|
75
|
+
When I cd to "build"
|
76
|
+
Then the file "stylesheets/relative_assets.css" should contain "url('../img/blank.gif')"
|
77
|
+
|
78
|
+
Scenario: Rendering html with a custom images_dir
|
79
|
+
Given "relative_assets" feature is "enabled"
|
80
|
+
And "images_dir" is set to "img"
|
81
|
+
And the Server is running at "relative-assets-app"
|
82
|
+
When I go to "/relative_image.html"
|
83
|
+
Then I should not see "/images/blank.gif"
|
84
|
+
Then I should not see "/img/blank.gif"
|
85
|
+
And I should see "img/blank.gif"
|
86
|
+
|
87
|
+
Scenario: Rendering scss with the feature enabled
|
88
|
+
Given "relative_assets" feature is "enabled"
|
89
|
+
And the Server is running at "fonts-app"
|
90
|
+
When I go to "/stylesheets/fonts.css"
|
91
|
+
Then I should see "url('../fonts/StMarie-Thin.otf"
|
92
|
+
And I should see "url('../fonts/blank/blank.otf"
|
93
|
+
|
94
|
+
Scenario: Rendering scss with the feature enabled and a custom fonts_dir
|
95
|
+
Given "relative_assets" feature is "enabled"
|
96
|
+
And "fonts_dir" is set to "otf"
|
97
|
+
And the Server is running at "fonts-app"
|
98
|
+
When I go to "/stylesheets/fonts.css"
|
99
|
+
Then I should not see "url('../fonts/StMarie-Thin.otf"
|
100
|
+
And I should see "url('../otf/StMarie-Thin.otf"
|
101
|
+
And I should see "url('../otf/blank/blank.otf"
|
102
|
+
|
103
|
+
Scenario: Building scss with the feature enabled
|
104
|
+
Given a fixture app "fonts-app"
|
105
|
+
And a file named "config.rb" with:
|
106
|
+
"""
|
107
|
+
activate :relative_assets
|
108
|
+
"""
|
109
|
+
Given a successfully built app at "fonts-app"
|
110
|
+
When I cd to "build"
|
111
|
+
Then the file "stylesheets/fonts.css" should contain "url('../fonts/StMarie-Thin.otf')"
|
112
|
+
And the file "stylesheets/fonts.css" should contain "url('../fonts/blank/blank.otf')"
|
113
|
+
|
114
|
+
Scenario: Building scss with the feature enabled and a custom fonts_dir
|
115
|
+
Given a fixture app "fonts-app"
|
116
|
+
And a file named "config.rb" with:
|
117
|
+
"""
|
118
|
+
set :fonts_dir, "otf"
|
119
|
+
activate :relative_assets
|
120
|
+
"""
|
121
|
+
Given a successfully built app at "fonts-app"
|
122
|
+
When I cd to "build"
|
123
|
+
Then the file "stylesheets/fonts.css" should not contain "url('../fonts/StMarie-Thin.otf')"
|
124
|
+
And the file "stylesheets/fonts.css" should contain "url('../otf/StMarie-Thin.otf')"
|
125
|
+
And the file "stylesheets/fonts.css" should contain "url('../otf/blank/blank.otf')"
|
126
|
+
|
127
|
+
Scenario: Relative assets via image_tag
|
128
|
+
Given a fixture app "relative-assets-app"
|
129
|
+
Given "relative_assets" feature is "enabled"
|
130
|
+
And a file named "source/sub/image_tag.html.erb" with:
|
131
|
+
"""
|
132
|
+
<%= image_tag '/img/blank.gif' %>
|
133
|
+
"""
|
134
|
+
And the Server is running at "relative-assets-app"
|
135
|
+
When I go to "/sub/image_tag.html"
|
136
|
+
Then I should see '<img src="../img/blank.gif" />'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
Feature: Support SASS assets paths
|
2
|
+
In order to import common shared assets when writing Sass
|
3
|
+
|
4
|
+
Scenario: Importing assets from 'assets/stylesheets/' directory in app root
|
5
|
+
Given the Server is running at "sass-assets-path-app"
|
6
|
+
When I go to "/stylesheets/plain.css"
|
7
|
+
Then I should see "color: green;"
|
8
|
+
Then I should see "/* Works with shared SCSS assets from APPROOT/assets/stylesheets/_shared-asset.scss */"
|
9
|
+
Then I should see "/* Works with shared SASS assets from APPROOT/assets/stylesheets/_shared-asset-sass.sass */"
|
10
|
+
Then I should see "font-size: 18px"
|
11
|
+
Then I should see "/* Works with shared SASS assets from external source directory */"
|
@@ -0,0 +1,22 @@
|
|
1
|
+
Feature: SASS .sass-cache custom location
|
2
|
+
|
3
|
+
Scenario: Using the default location for .sass-cache folder
|
4
|
+
Given the Server is running at "sass-cache-path-default-app"
|
5
|
+
|
6
|
+
When I go to "/stylesheets/plain.css"
|
7
|
+
Then I should see "color: blue;"
|
8
|
+
|
9
|
+
# TODO::
|
10
|
+
# Not sure how to test this location, as the directory is stored outside of the app root
|
11
|
+
# during testing, but inside app root in "production"
|
12
|
+
|
13
|
+
# Then a directory named ".sass-cache" should exist
|
14
|
+
|
15
|
+
|
16
|
+
Scenario: Using a custom location for .sass-cache folder
|
17
|
+
Given the Server is running at "sass-cache-path-custom-app"
|
18
|
+
|
19
|
+
When I go to "/stylesheets/plain.css"
|
20
|
+
Then I should see "html, body, div, span, applet, object, iframe,"
|
21
|
+
|
22
|
+
Then a directory named "/tmp/middleman-core-custom-sass_cache_path" should exist
|
@@ -0,0 +1,54 @@
|
|
1
|
+
Feature: Sass Updates and Partials
|
2
|
+
Scenario: The preview server should update stylesheets when Sass changes
|
3
|
+
Given the Server is running at "more-preview-app"
|
4
|
+
And the file "source/stylesheets/plain.css.sass" has the contents
|
5
|
+
"""
|
6
|
+
red
|
7
|
+
color: red
|
8
|
+
"""
|
9
|
+
When I go to "/stylesheets/plain.css"
|
10
|
+
Then I should see "color: red;"
|
11
|
+
And the file "source/stylesheets/plain.css.sass" has the contents
|
12
|
+
"""
|
13
|
+
red
|
14
|
+
color: blue
|
15
|
+
"""
|
16
|
+
When I go to "/stylesheets/plain.css"
|
17
|
+
Then I should see "color: blue;"
|
18
|
+
|
19
|
+
Scenario: The preview server should update stylesheets when Sass partials change
|
20
|
+
Given the Server is running at "more-preview-app"
|
21
|
+
And the file "source/stylesheets/main.css.sass" has the contents
|
22
|
+
"""
|
23
|
+
@import partial.sass
|
24
|
+
|
25
|
+
red
|
26
|
+
color: red
|
27
|
+
"""
|
28
|
+
And the file "source/stylesheets/_partial.sass" has the contents
|
29
|
+
"""
|
30
|
+
body
|
31
|
+
font-size: 14px
|
32
|
+
"""
|
33
|
+
When I go to "/stylesheets/main.css"
|
34
|
+
Then I should see "color: red;"
|
35
|
+
And I should see "font-size: 14px;"
|
36
|
+
And the file "source/stylesheets/main.css.sass" has the contents
|
37
|
+
"""
|
38
|
+
@import partial.sass
|
39
|
+
|
40
|
+
red
|
41
|
+
color: blue
|
42
|
+
"""
|
43
|
+
And the file "source/stylesheets/_partial.sass" has the contents
|
44
|
+
"""
|
45
|
+
body
|
46
|
+
font-size: 18px
|
47
|
+
"""
|
48
|
+
When I go to "/stylesheets/main.css"
|
49
|
+
Then I should see "color: blue;"
|
50
|
+
And I should see "font-size: 18px"
|
51
|
+
|
52
|
+
Scenario: Sass partials should work when building
|
53
|
+
Given a successfully built app at "more-preview-app"
|
54
|
+
Then the file "build/stylesheets/main.css" should contain "font-size: 18px"
|
@@ -0,0 +1,12 @@
|
|
1
|
+
Feature: Support SCSS Syntax
|
2
|
+
In order to offer an alternative when writing Sass
|
3
|
+
|
4
|
+
Scenario: Rendering scss
|
5
|
+
Given the Server is running at "scss-app"
|
6
|
+
When I go to "/stylesheets/site_scss.css"
|
7
|
+
Then I should see "html"
|
8
|
+
|
9
|
+
Scenario: Rendering scss
|
10
|
+
Given the Server is running at "scss-app"
|
11
|
+
When I go to "/stylesheets/layout.css"
|
12
|
+
Then I should see "html"
|
@@ -0,0 +1,69 @@
|
|
1
|
+
Feature: Support slim templating language
|
2
|
+
In order to offer an alternative to Haml
|
3
|
+
|
4
|
+
Scenario: Rendering Slim
|
5
|
+
Given an empty app
|
6
|
+
And a file named "config.rb" with:
|
7
|
+
"""
|
8
|
+
"""
|
9
|
+
And a file named "source/slim.html.slim" with:
|
10
|
+
"""
|
11
|
+
doctype 5
|
12
|
+
html lang='en'
|
13
|
+
head
|
14
|
+
meta charset="utf-8"
|
15
|
+
|
16
|
+
body
|
17
|
+
h1 Welcome to Slim
|
18
|
+
"""
|
19
|
+
And the Server is running at "empty_app"
|
20
|
+
When I go to "/slim.html"
|
21
|
+
Then I should see "<h1>Welcome to Slim</h1>"
|
22
|
+
|
23
|
+
Scenario: Rendering Scss in a Slim filter
|
24
|
+
Given an empty app
|
25
|
+
And a file named "config.rb" with:
|
26
|
+
"""
|
27
|
+
"""
|
28
|
+
And a file named "source/scss.html.slim" with:
|
29
|
+
"""
|
30
|
+
doctype 5
|
31
|
+
html lang='en'
|
32
|
+
head
|
33
|
+
meta charset="utf-8"
|
34
|
+
scss:
|
35
|
+
@import "compass";
|
36
|
+
@include global-reset;
|
37
|
+
body
|
38
|
+
h1 Welcome to Slim
|
39
|
+
"""
|
40
|
+
And a file named "source/sass.html.slim" with:
|
41
|
+
"""
|
42
|
+
doctype 5
|
43
|
+
html lang='en'
|
44
|
+
head
|
45
|
+
meta charset="utf-8"
|
46
|
+
sass:
|
47
|
+
@import "compass"
|
48
|
+
+global-reset
|
49
|
+
body
|
50
|
+
h1 Welcome to Slim
|
51
|
+
"""
|
52
|
+
And a file named "source/error.html.slim" with:
|
53
|
+
"""
|
54
|
+
doctype 5
|
55
|
+
html lang='en'
|
56
|
+
head
|
57
|
+
meta charset="utf-8"
|
58
|
+
scss:
|
59
|
+
+global-reset
|
60
|
+
body
|
61
|
+
h1 Welcome to Slim
|
62
|
+
"""
|
63
|
+
And the Server is running at "empty_app"
|
64
|
+
When I go to "/scss.html"
|
65
|
+
Then I should see "html, body, div"
|
66
|
+
When I go to "/sass.html"
|
67
|
+
Then I should see "html, body, div"
|
68
|
+
When I go to "/error.html"
|
69
|
+
Then I should see "Syntax error"
|
@@ -0,0 +1,55 @@
|
|
1
|
+
@nojava
|
2
|
+
Feature: Stylus Updates and Partials
|
3
|
+
Scenario: The preview server should update stylesheets when Stylus changes
|
4
|
+
Given the Server is running at "stylus-preview-app"
|
5
|
+
And the file "source/stylesheets/plain.css.styl" has the contents
|
6
|
+
"""
|
7
|
+
red
|
8
|
+
color: #f0f0f0
|
9
|
+
"""
|
10
|
+
When I go to "/stylesheets/plain.css"
|
11
|
+
Then I should see "color: #f0f0f0;"
|
12
|
+
And the file "source/stylesheets/plain.css.styl" has the contents
|
13
|
+
"""
|
14
|
+
red
|
15
|
+
color: #0f0f0f
|
16
|
+
"""
|
17
|
+
When I go to "/stylesheets/plain.css"
|
18
|
+
Then I should see "color: #0f0f0f;"
|
19
|
+
|
20
|
+
Scenario: The preview server should update stylesheets when Stylus partials change
|
21
|
+
Given the Server is running at "stylus-preview-app"
|
22
|
+
And the file "source/stylesheets/main.css.styl" has the contents
|
23
|
+
"""
|
24
|
+
@import '_partial'
|
25
|
+
|
26
|
+
red
|
27
|
+
color: #f0f0f0
|
28
|
+
"""
|
29
|
+
And the file "source/stylesheets/_partial.styl" has the contents
|
30
|
+
"""
|
31
|
+
body
|
32
|
+
font-size: 14px
|
33
|
+
"""
|
34
|
+
When I go to "/stylesheets/main.css"
|
35
|
+
Then I should see "color: #f0f0f0;"
|
36
|
+
And I should see "font-size: 14px;"
|
37
|
+
And the file "source/stylesheets/main.css.styl" has the contents
|
38
|
+
"""
|
39
|
+
@import '_partial'
|
40
|
+
|
41
|
+
red
|
42
|
+
color: #0f0f0f
|
43
|
+
"""
|
44
|
+
And the file "source/stylesheets/_partial.styl" has the contents
|
45
|
+
"""
|
46
|
+
body
|
47
|
+
font-size: 18px
|
48
|
+
"""
|
49
|
+
When I go to "/stylesheets/main.css"
|
50
|
+
Then I should see "color: #0f0f0f;"
|
51
|
+
And I should see "font-size: 18px"
|
52
|
+
|
53
|
+
Scenario: Stylus partials should work when building
|
54
|
+
Given a successfully built app at "stylus-preview-app"
|
55
|
+
Then the file "build/stylesheets/main.css" should contain "font-size: 18px"
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class Middleware
|
2
|
+
def initialize(app)
|
3
|
+
@app = app
|
4
|
+
end
|
5
|
+
|
6
|
+
def call(env)
|
7
|
+
status, headers, response = @app.call(env)
|
8
|
+
body = ''
|
9
|
+
response.each {|part| body += part }
|
10
|
+
if (env["PATH_INFO"] =~ /css$/)
|
11
|
+
body += "\n/* Added by Rack filter */"
|
12
|
+
status, headers, response = Rack::Response.new(body, status, headers).finish
|
13
|
+
end
|
14
|
+
[status, headers, response]
|
15
|
+
end
|
16
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|