Re: I don't even know where to begin writing this template-tags

2009-01-22 Thread Andrew Ingram
That works great, thanks! bruno desthuilliers wrote: > http://www.djangosnippets.org/snippets/1293/ > This may help: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: I don't even know where to begin writing this template-tags

2009-01-21 Thread Doug B
I went the hideous route, but tried to make it general enough I could reuse. I'm still on .96, but it shouldn't be too much trouble to make it work with 1.0. In [2]: template.Template("{% load kwtag %}{% do_kwtagtest foo foo=bar %}").render(template.Context()) Out[2]: "['foo']{'foo': 'bar'}"

Re: I don't even know where to begin writing this template-tags

2009-01-21 Thread Preston Holmes
It may not be as pretty as a parseable param array, but what about just having all your args in a single JSON string. Are your template authors savvy enough? -Preston On Jan 20, 3:32 pm, Andrew Ingram wrote: > I'm building a simple banner/promotion system for a site.

Re: I don't even know where to begin writing this template-tags

2009-01-21 Thread bruno desthuilliers
On 21 jan, 14:17, Puneet Madaan wrote: > try this... its complete tutorial which include template tags too.. will > help you to understand Thanks but as far as I'm concerned, I've written far enough template tags to not have a use for an introductory tutorial to Django's

Re: I don't even know where to begin writing this template-tags

2009-01-21 Thread Puneet Madaan
try this... its complete tutorial which include template tags too.. will help you to understand http://www.webmonkey.com/tutorial/Use_Templates_in_Django greetings, Puneet On Wed, Jan 21, 2009 at 2:13 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > > On 21 jan, 00:32, Andrew

Re: I don't even know where to begin writing this template-tags

2009-01-21 Thread bruno desthuilliers
On 21 jan, 00:32, Andrew Ingram wrote: > I'm building a simple banner/promotion system for a site. Aside from a > few date-related fields, a banner consists of: > - an image > - a target url > - the image dimensions > - some tags (using django-tagging) > > I'm trying to

I don't even know where to begin writing this template-tags

2009-01-20 Thread Andrew Ingram
I'm building a simple banner/promotion system for a site. Aside from a few date-related fields, a banner consists of: - an image - a target url - the image dimensions - some tags (using django-tagging) I'm trying to figure out how to build a template-tag to allow me to display a number of