template var not updated in init for local define
Submitted by Danny Groenewegen on 18 June 2010 at 13:23define page search(query : String) { var searchTermsInJS:String; init{ searchTermsInJS := query; } main() define localBody(){ JSScriptVar(searchTermsInJS) } } define JSScriptVar(query:String){ init{ log(s); // incorrectly shows "" } <script> var searchterms = ~s; </script> }
Log in to post comments