>
> Hi, I am new to web2py and I would like to embed a running (tested with
> flask)
> javascript based on d3.js in a web2py view.
>
If the script can go in the body of the document, you can do this in a view:
{{=SCRIPT(_type="text/javascript", _src=URL(c="static", f="js/<the script's
name>"))}}
Where <the script's name> is stored in the scaffolding app's static/js
folder
If not, then you can add it to the head by appending the URL(...) to the
response.files global object in the model
response.files.append(URL(...))
--