From f288f4110c26b7b6a896e2e75f79b3c935496d1d Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 27 Mar 2017 14:18:34 -0500 Subject: [PATCH] ASSIGNJS --- sources/29-web2py-english/05.markmin | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sources/29-web2py-english/05.markmin b/sources/29-web2py-english/05.markmin index 57d7f5c5..a8c92309 100644 --- a/sources/29-web2py-english/05.markmin +++ b/sources/29-web2py-english/05.markmin @@ -1915,5 +1915,15 @@ var someURL = "{{=URL('default', 'myfunction')}}"; ``:code +or equivalently using the web2py ``ASSIGNJS`` helper: + +`` + +``:code + then in "my.js", ``someVar`` and ``someURL`` can be used as normal javascript variables. +