Roots Asset Expand - WIP
Installing
npm install roots-asset-expand --save
Using
in your app.coffee file
extensions: [assetExpand({
lookup: "nested/*.js"
tagName: "script"
attributes: {
"type": "text/javascript"
}
})]
in a jade file
// assets(*.js)
h1 hi
gives you
<script src='nested/foo.js' type='text/javascript' ></script>
<script src='nested/foo1.js' type='text/javascript' ></script>
<script src='nested/foo2.js' type='text/javascript' ></script>
<h1> hi </h1>