README.md in requirejs-rails-0.6.1 vs README.md in requirejs-rails-0.7.0
- old
+ new
@@ -116,10 +116,29 @@
**must** be specified in the modules section in order to produce a correct
build.
- Be a common library module like `appcommon`, listed in the `priority` config
option.
+### Almond support
+
+This gem supports single-file builds with
+[almond](https://github.com/jrburke/almond). Use the following setting in
+`application.rb` to enable it:
+
+```ruby
+config.requirejs.loader = :almond
+```
+
+Almond builds have the restriction that there must be exactly one modules entry in
+`requirejs.yml`. Typically the [wrap option](https://github.com/jrburke/r.js/blob/master/build/example.build.js#L275) will be used to create a self-contained build:
+
+```yaml
+modules:
+ - name: 'main'
+wrap: true
+```
+
## Advanced features
### Additional data attributes
`requirejs_include_tag` accepts an optional block which should return a hash.
@@ -165,13 +184,14 @@
### Underscore.js
Underscore 1.3.x likewise doesn't have AMD support. Again, see
the [amdjs fork of Underscore](https://github.com/amdjs/underscore).
-## Changes
+## 0.x API Changes
-Usage changes that impact folks upgrading along the 0.x series are
-documented here. See [the Changelog](CHANGELOG.md) for other details.
+Usage changes that may break functionality for those upgrading along the 0.x
+series are documented here. See [the Changelog](CHANGELOG.md) for the full
+list of feature additions, bugfixes, etc.
### v0.5.1
- `requirejs_include_tag` now generates a data-main attribute if given an argument, ala: