roots-asset-expand

0.1.0 • Public • Published

Roots Asset Expand - WIP

Build Status

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>

Readme

Keywords

none

Package Sidebar

Install

npm i roots-asset-expand

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • samccone