Javascript in template

2009-03-06 Thread menshikoval...@gmail.com
Hello. How to use JavaScript in template form? I'v add http://www.dhtmlgoodies.com/index.html?page=calendarScripts Alexy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" gr

Re: Javascript in template

2009-03-06 Thread Jerry
Jerry On Mar 6, 4:34 am, "menshikoval...@gmail.com" wrote: > Hello. > > How to use JavaScript in template form? > > I'v add > > > > > > http://www.dhtmlgoodies.com/index.html?page=calendarScripts > > Alexy --~--~-~--~~-

Re: Javascript in template

2009-03-07 Thread menshikoval...@gmail.com
Jerry, script from the example in .html works in FF, IE, Konqueror... http://yourserver/js/calendar.js this url show my script (mysite/ mysite/public/js/calendar.js) in Pylons i'v read that (type="text/javascript") is unnecessary. I try to use webhelpers ${h.javascript_link('/js/calendar.js')}

Re: Javascript in template

2009-03-08 Thread Jonathan Vanasco
why not just paste that entire bit of javascript into the template there is no need to use any webhelpers stuff. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send ema

CSS, images and JavaScript in /template?

2009-11-24 Thread jon
Hi, I'm wondering if it's possible to put CSS, images and JavaScript into the /template directory of Pylons and somehow get the Mako templates to refer to those files and not the ones in /public? I'm building a system which is "themeable" and I want to keep all of the theme files together and fig

Re: CSS, images and JavaScript in /template?

2009-11-24 Thread Wyatt Baldwin
On Nov 24, 10:30 am, jon wrote: > Hi, > > I'm wondering if it's possible to put CSS, images and JavaScript into > the /template directory of Pylons and somehow get the Mako templates > to refer to those files and not the ones in /public? > > I'm building a system which is "themeable" and I want to

Re: CSS, images and JavaScript in /template?

2009-11-24 Thread Jonathan Vanasco
you could put everything into /templates/_themes and then have routes/a controller dispatch stuff to the right files as needed -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-disc...@googlegroups.c

Re: CSS, images and JavaScript in /template?

2009-11-24 Thread jon
These all seem like really good ideas, for certain. What I ended up doing is in my middleware.py I query my database to get all the current themes and a dirname attribute. I then build and add the paths for each theme along with building a StaticURLParser for each theme. All of that gets passed int

Re: CSS, images and JavaScript in /template?

2009-11-24 Thread Wyatt Baldwin
On Nov 24, 3:22 pm, jon wrote: > These all seem like really good ideas, for certain. What I ended up > doing is in my middleware.py I query my database to get all the > current themes and a dirname attribute. I then build and add the paths > for each theme along with building a StaticURLParser for

Re: CSS, images and JavaScript in /template?

2009-12-02 Thread jon
Yeah, turns out the StaticURLParser didn't work so well. Each of my themes had different images but with the same name and so I would get the wrong images in a site, even though it was named correctly. Based on your suggestion I've switched things up to do a couple things: 1. There's a site object

Re: CSS, images and JavaScript in /template?

2009-12-02 Thread Jonathan Vanasco
i just thought of something... what if you have: pylonsapp/themes/## themename ## which has 2 sub folders: /templates /static you can them just symlink these themes into the right spots in /public and /template ; even have a quick py/shell script to automate that it would let you h