Re: Template processing/pre-processing

2009-11-02 Thread bruno desthuilliers
On 2 nov, 12:37, rd-london wrote: > Not worry, found work-a-round using MEDIA_URL. Actually, that's what MEDIA_URL is for - so it's not a "workaround". Now if you want more control (or custom stuff), writing a context processor that exposes whatever setting (builtin or custom) you want isn't r

Re: Template processing/pre-processing

2009-11-02 Thread rd-london
Not worry, found work-a-round using MEDIA_URL. On Oct 30, 4:39 pm, rd-london wrote: > Hi, > > I'd like to write some code, probably middleware, that look at various > types of HTML in templates and prepends a setting from settings.py. > > For example, I'd like to pickup all .js, .css, .jpg, .pn

Template processing/pre-processing

2009-10-30 Thread rd-london
Hi, I'd like to write some code, probably middleware, that look at various types of HTML in templates and prepends a setting from settings.py. For example, I'd like to pickup all .js, .css, .jpg, .png, .gif - and stick a custom setting from settings.py on the front - effectively a path. Ideally