I use this in my view :

<script src="{{=URL('static','js/abc.js')}}"></script>

This works, Anyone please correct me if I am not right.

On Friday, 13 July 2012 08:19:44 UTC+5:30, MichaelF wrote:
>
> I want to include a JavaScript file, but only for certain views. What's 
> the best way to include it? Do I have the controller append it to the 
> response.files property? Do I simply use the <script> with "src=..." 
> somewhere in the view? Something else?

Reply via email to