ariatemplates/hashspace — pull request #20 by piuccio (2013-12-20 02:59:27+00:00)
Title: Support browserify

Add a `prepublish` script to generate a standalone version of hashspace that can be easily dropped in the browser.
This avoid the need of other script loaders.
Keeps the compiler separate for the runtime.

**Usage (node)**
`npm install`
or
`grunt package`

**Output**
Creates 4 different files in `build/` folder
`hashspace.js` (and .min)
`hashspace.compiler.js` (and .min)

**Why**
There's no need to use a script loader to use hashspace, and having a single file to put in the page is a much simpler setup.
For production `hashspace.js` is all you need (btw it's now ~30kB), it corresponds to 'hsp/rt'.

For easy development you can include also `hashspace.compiler.js` and compile your templates in the browser.

Once more, in production there's no need of the compiler, ideally all templates should be compiled offline and served in any way you like.

**Usage (browser)**

```html

Hashspace

```

**Comments**

I've included the built file in the repository, I think it makes more sense, people can simply grab the file from here.
But if you prefer I can exclude the build folder from git

Hope you like it :wink: