[Twisted-web] How to import JQuery from Athena
Jean-Paul Calderone
exarkun at divmod.com
Fri Jul 3 15:56:20 EDT 2009
On Fri, 3 Jul 2009 16:42:39 -0300, Juanjo Conti <jjconti at gmail.com> wrote:
>Hi, I've downloaded the jquery-1.3.2.min.js file from JQuery web page.
>Now I need to import it. How do I do it? With the // import sentence?
>
>Could you supplyme an example?
If you want to use `// import ...´, you need to "package" jQuery. This is
covered a bit in the Athena tutorial on the wiki. In particular, this
section:
http://divmod.org/trac/wiki/DivmodNevow/Athena/Tutorials/LiveElement#CustomizingBehavior
You don't have to use `// import ...´, though. You could just put a script
tag into your page that loads jQuery.
Jean-Paul
More information about the Twisted-web
mailing list