Include javascript file in layout.html

30 views
Skip to first unread message

Omicron VT

unread,
May 29, 2019, 7:41:41 PM5/29/19
to web2py-users
I am trying to include Tabulator JS in layout.html but i can not make it work.

If I include the files in the head section of view it works OK.

But if I include them on the head section of layout.html and then in view i use extend 'layout.html' it can not find it.

In sure is me, but i can not figure out.

Thanks

Massimo Di Pierro

unread,
Jul 5, 2019, 2:01:22 AM7/5/19
to web2py-users
In general it is good practive to include JS at the end of the <body> tag. But what you have should work. Can you provide an example?
Reply all
Reply to author
Forward
0 new messages