Skip to content

Commit

Permalink
[#540] Add note and link to module tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin authored and Sean Hammond committed Apr 23, 2013
1 parent b2199f9 commit 3e20fbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/javascript-coding-standards.rst
Expand Up @@ -298,7 +298,7 @@ JavaScript after the page has loaded. It's then not part of the HTML document
and can submit any data format it pleases.

Ajax
````````
````

Ajax requests can be used to improve the experience of submitting forms and
other actions that require server interactions. Nearly all requests will
Expand Down
5 changes: 5 additions & 0 deletions doc/javascript-module-tutorial.rst
Expand Up @@ -48,6 +48,11 @@ We pass in the module name and a factory function that should return our
module object. This factory gets passed a local jQuery object and a
translation object.

.. Note::
In order to include a module for page render inclusion within an
extension it is recommended that you use ``{% resource %}`` within
your templates. See the `Resource Documentation <./resources.html>`_

Initialisation
~~~~~~~~~~~~~~

Expand Down

0 comments on commit 3e20fbc

Please sign in to comment.