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
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
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
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
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
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
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
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
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')}
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
--~--~-~--~~-
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
11 matches
Mail list logo