I'm trying to use javascript to automatically insert a link to a plugin web
page within an application. However, the javascript, being a static file,
has no way of generating a valid URL in the proper web2py fashion using a
URL helper.
I thought perhaps I could use the base element to re-define the root of the
application using the URL helper. Then my javascript could then just insert
a link to /plugin_myplugin/index.html for example.
For example in the layout.html I was hoping to use
<base href="{{=URL(...)}"/>
Hoiwever, I am stuck for a way to get the URL helper just to create a url
path to the application itself. e.g. /myapp/
I want to use the URL helper so that if I start customising the routes.py
then the generated url will still be valid.
Any ideas? Is this even possible, if not is there another way to approach
this?
Thanks,
Richard.
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.