Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

documentation - missing controller.server.js code from Step 9 in http://developer.yahoo.com/cocktails/mojito/docs/code_exs/calling_yql.html #562

Closed
dmitris opened this issue Sep 25, 2012 · 1 comment

Comments

@dmitris
Copy link
Contributor

dmitris commented Sep 25, 2012

http://developer.yahoo.com/cocktails/mojito/docs/code_exs/calling_yql.html
(Calling YQL from a Mojit) in the "Setting Up this Example" section, Step 9 misses the code for the controller.server.js -

9. Modify the mojit controller to get data from the model by replacing the code in controller.server.js with the following:

10. Create the file assets/index.css for the application’s CSS with the following:

The corresponding source code is in https://github.com/yahoo/mojito/blame/master/docs/dev_guide/code_exs/calling_yql.rst line 310:

#. Modify the mojit controller to get data from the model by replacing the code in ``controller.server.js`` with the following:

#. Create the file ``assets/index.css`` for the application's CSS with the following:

The example file:
examples/developer-guide/model_yql/mojits/flickr/controller.server.js
is OK, so we just need to brush it up for it to be jslint error-free and copy the code into a code-block in the missing area.

@ghost ghost assigned zhouyaoji Sep 25, 2012
dmitris pushed a commit to dmitris/mojito that referenced this issue Sep 25, 2012
…(copied from examples/developer-guide/model_yql/mojits/flickr/controller.server.js)~examples ~documentation
@zhouyaoji
Copy link
Contributor

Thanks, Dmitri. I've added the missing code for the controller. Thanks for reviewing the docs!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants