docs about extract
This commit is contained in:
parent
bb54a3b675
commit
f589a33842
9 changed files with 34 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -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).
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue