Sha256: 64ab145707df4fe34d5550fd1b34a22944d9b232602fae141c66b12eccf4b881

Contents?: true

Size: 521 Bytes

Versions: 3

Compression:

Stored size: 521 Bytes

Contents

# Sprockets Export

A [Sprockets directive](https://github.com/rails/sprockets#sprockets-directives) for hassle-free [UMD](https://github.com/umdjs/umd)-style JavaScript module definitions.

## Using

``` ruby
# Gemfile

gem 'sprockets', '>= 3.0.0'
gem 'sprockets-export'
```

```js
/* widget.js */

//= export Widget
//= require_self

this.Widget = { name: "gizmo" }
```

## Consuming

```js
widget = require("widget")
widget.name // gizmo
```

---

Licensed under the [MIT License](LICENSE.txt)

© 2016 Javan Makhmali

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sprockets-export-1.0.0 README.md
sprockets-export-0.9.1 README.md
sprockets-export-0.9.0 README.md