Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make asset registration a deliberate process

  • Loading branch information...
commit 218508ec00d92fe42711ea754ff424a575d41b32 1 parent 3bfb928
@jxa jxa authored
Showing with 6 additions and 5 deletions.
  1. +5 −2 README.md
  2. +1 −3 src/dieter/asset/ember.clj
View
7 README.md
@@ -11,8 +11,11 @@ In your project.clj file
Insert it into your ring middleware stack
```clojure
-(use 'dieter)
-(require 'dieter.asset.ember)
+(use '[dieter :only [asset-pipeline]])
+(use '[dieter.asset.ember :only [map->Ember]])
+(use '[dieter.asset :only [register]])
+
+(register "hbs" map->Ember)
(-> app
(asset-pipeline config-options))
```
View
4 src/dieter/asset/ember.clj
@@ -1,9 +1,9 @@
(ns dieter.asset.ember
(:require
+ dieter.asset
dieter.asset.javascript
[clojure.string :as s])
(:use
- [dieter.asset :only [register]]
[dieter.rhino :only [with-scope call make-pool]]))
(defn filename-without-ext [file]
@@ -25,5 +25,3 @@
dieter.asset.Asset
(read-asset [this options]
(dieter.asset.javascript.Js. (:file this) (preprocess-handlebars (:file this)))))
-
-(register "hbs" map->Handlebars)
Please sign in to comment.
Something went wrong with that request. Please try again.