Closed yukinying closed 11 years ago
@yukinying thanks for the report. Indeed meta
is a bit a of magic that's somewhat obscure.
Let's flesh out http://developer.yahoo.com/cocktails/mojito/api/classes/ActionContext.html#method_done
http://developer.yahoo.com/cocktails/mojito/docs/intro/mojito_mvc.html#specifying-the-view mentions you can specify a view, but it's sparse.
@zhouyaoji I notice the link http://developer.yahoo.com/cocktails/mojito/api/files/node_modules_mojito_lib_app_autoload_action-context.common.js.html#l388 from http://developer.yahoo.com/cocktails/mojito/api/classes/ActionContext.html#method_done is broken?
Thanks for catching that, @rwaldura. I've fixed the problem.
resolved fixed
Just taking some time digging out what is fixed. The use of meta with serialize:json is still not appearing in documentation. Maybe I have overlooking something?
/ping @zhouyaoji
Making mojito to speak restful services is extremely useful for real world applications. When I am trying to hack mojito to do that, I dig into the source code and realized it is already there. It is as easy as this:
I may have mistaken that it has already been documented, but if not, why don't we document that as it is a very good showcase of usage of mojito for building complex application !