Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #9 from tchak/hbs

Allow .hbs extension for templates
  • Loading branch information...
commit 44650d9e1a06ea9d5047f801e65121c197c8b235 2 parents 8f23c95 + e20bb4f
Adam Hawkins authored
Showing with 11 additions and 1 deletion.
  1. +1 −1  lib/iridium/Assetfile
  2. +10 −0 test/pipeline_test.rb
View
2  lib/iridium/Assetfile
@@ -7,7 +7,7 @@ input app.app_path do
erb :binding => binding
end
- match "**/*.handlebars" do
+ match "**/*.{hbs,handlebars}" do
handlebars
end
View
10 test/pipeline_test.rb
@@ -137,6 +137,16 @@ def tests_compiles_handle_bars_into_js_file
assert_includes content, "{{#name}}"
end
+ def tests_compiles_hbs_into_js_file
+ create_file "app/javascripts/home.hbs", "{{#name}}"
+
+ compile ; assert_file "site/application.js"
+
+ content = read "site/application.js"
+
+ assert_includes content, "{{#name}}"
+ end
+
def test_concats_vendor_css_before_app_css
create_file "app/stylesheets/home.css", "#second-selector"
create_file "app/stylesheets/vendor/bootstrap.css", "#first-selector"
Please sign in to comment.
Something went wrong with that request. Please try again.