yes you can but there's another way.
http://tw2core.readthedocs.org/en/latest/design/ see the section "using
your own resources." you can have a jquery file under public/js and make
toscawidgets use it.
On Monday, April 21, 2014 11:14:39 AM UTC+3, Craig Small wrote:
>
> I know that importing things is a little tricky in TG2 but what is the
> "TG2 way" to import jquery?
>
> tg.url doesn't work because its hiding under tw2.jquery.
> Can I just do something like
> from tw2.jquery import jquery_js
> and directly send it out from my controller with
> <script src=${thing_the_controller_sends} type="text/javascript">
>
> In my master template?
> --
> Craig Small (@smallsees) http://enc.com.au/ csmall at : enc.com.au
> Debian GNU/Linux http://www.debian.org/ csmall at : debian.org
> GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5
>
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.