Correction:

'web2py_ajax.html' does not have string interpolation, this have to be
parsed by web2py template system, because uses {{=xxxx}} notation to build
scripts.

2010/9/30 Bruno Rocha <[email protected]>

> In layout.html you can call external JS files using:
>
> {{response.files.append(URL(request.application,'static/js','javascriptfile.js'))}}
>
> Scripts are also loaded dinamicaly by 'web2py_ajax.html'  which builds the
> JS script at runtime, as this uses string interpolation to build scripts,
> this could not be stored in a separate file.
>
> I guess thats the reason.
>
> 2010/9/30 Manu <[email protected]>
>
> Hi,
>>
>>  What is the reason to not have these functions into a dedicated
>> external file. By including it in the html page we can't use the
>> browser cache and we need to transfer it again and again , sounds me a
>> waste of time transfer and bandwidth. As i am not a web expert ( i am
>> actually learning with web2py !!  great tool to do that too ), i was
>> wondering if there is a specific reason ?
>>
>> Thx
>>
>
>
>
> --
>
> http://rochacbruno.com.br
>



-- 

http://rochacbruno.com.br

Reply via email to