docs about extract

This commit is contained in:
Leo Horie 2014-04-20 20:01:06 -04:00
parent bb54a3b675
commit f589a33842
9 changed files with 34 additions and 2 deletions

View file

@ -4,7 +4,14 @@
### News:
- added comparison with React to homepage
- added support for multi-island apps [#34](https://github.com/lhorie/mithril.js/issues/34)
- m.prop is now JSON-serializable [#54](https://github.com/lhorie/mithril.js/issues/54)
- added `extract` option to `m.request` to allow access to response metadata [#53](https://github.com/lhorie/mithril.js/issues/53)
### Breaking changes:
- changing an id in a virtual element now recreates the element, instead of recycling it [#55](https://github.com/lhorie/mithril.js/issues/55)
---

View file

@ -104,6 +104,16 @@ Then, to use Mithril, point a script tag to the downloaded file:
---
### Rails
Jordan Humphreys created a gem to allow integration with Rails:
[https://github.com/mrsweaters/mithril-rails](Mithril-Rails)
It includes support for the [MSX](https://github.com/insin/msx) HTML templating syntax from Jonathan Buchanan.
---
### Github
You can also fork the latest stable project [directly from Github](https://github.com/lhorie/mithril).

View file

@ -371,7 +371,7 @@ where:
Method to use to extract the data from the raw XMLHttpRequest. This is useful when the relevant data is either in a response header or the status field.
If this parameter is falsy, `xhr.responseText` will be used.
If this parameter is falsy, the default value is `function(xhr, options) {return xhr.responseText}`.
- **void type(Object<any> data)** (optional)

View file

@ -29,6 +29,8 @@ todo.view = function(ctrl) {
Note, however, that since the code above is not valid Javascript, this syntax can only be used with a preprocessor build tool such as the provided [Gulp.js](http://gulpjs.com) script.
This tool is also available as a [Rails gem](https://github.com/mrsweaters/mithril-rails), created by Jordan Humphreys.
---
### Mithril Template Compiler