Re: templates & elements

2005-12-06 Thread Colin Howlett
Robert, I understood it wasn't implemented yet. Thanks for the clarification - it looks good!

Re: templates & elements

2005-12-06 Thread Robert Wittams
Colin Howlett wrote: > Robert, > > Thanks again. I can see how I can acheive what I want to acheive with > simple_tag. > > I'm not sure that I understand your first example though. > > Is the list of url patterns passed as parameters to inclusion_tag > supposed to be searched for a match to dec

Re: templates & elements

2005-12-06 Thread Colin Howlett
Robert, Thanks again. I can see how I can acheive what I want to acheive with simple_tag. I'm not sure that I understand your first example though. Is the list of url patterns passed as parameters to inclusion_tag supposed to be searched for a match to decide which template to use? It seems I

Re: templates & elements

2005-12-06 Thread Robert Wittams
Colin Howlett wrote: > Thanks Robert! > > The @inclusion_tag decorator is really nice! Much nicer than what I > wrote above. > > One thing I'm not too keen on with @inclusion_tag is that the template > is hard coded in the tag itself. (Did I understand that correctly?) > That means everytime I w

Re: templates & elements

2005-12-06 Thread Colin Howlett
Thanks Robert! The @inclusion_tag decorator is really nice! Much nicer than what I wrote above. One thing I'm not too keen on with @inclusion_tag is that the template is hard coded in the tag itself. (Did I understand that correctly?) That means everytime I want to use a different template, even

Re: templates & elements

2005-12-05 Thread Robert Wittams
Colin Howlett wrote: > Robert Wittams wrote: > >>Sorry, I just can not work out what on earth you are actually trying to >>achieve - too many instances of the word 'generic'... A concrete >>example would be best. > > > Robert, > > Sorry, I guess I wasn't communicating very clearly. > > What

Re: templates & elements

2005-12-05 Thread Colin Howlett
What Amit is proposing with his {% render partialURL%} tag is extremely similar in concept to the {% include_url %}/url/with/{{ param }}/{% end_include_url %} tag that I proposed (and provided code for above). my reasoning for using separate start and end tags was to ease the construction of

Re: templates & elements

2005-12-05 Thread patrick k
> On 12/5/05, Medium <[EMAIL PROTECTED]> wrote: >> >> Are you guys looking for portal or portlet like functionality ? From >> what I have seen, neither django or any other python web framework >> currently supports such a component style of web programming. You would >> need to handle the model r

Re: templates & elements

2005-12-05 Thread Amit Upadhyay
On 12/5/05, Medium <[EMAIL PROTECTED]> wrote: Are you guys looking for portal or portlet like functionality ? Fromwhat I have seen, neither django or any other python web frameworkcurrently supports such a component style of web programming. You would need to handle the model repeatedly in your vie

Re: templates & elements

2005-12-05 Thread Medium
patrick k wrote: i´ve been asking that question before. but now, i do have a somehow detailed description at: http://www.vonautomatisch.at/framework/dkit/description.php?id=1 basically, we´d like to split a site into a main template, into boxes (div-structures) and elements (content). then, we

Re: templates & elements

2005-12-04 Thread Colin Howlett
Robert Wittams wrote: > Sorry, I just can not work out what on earth you are actually trying to > achieve - too many instances of the word 'generic'... A concrete > example would be best. Robert, Sorry, I guess I wasn't communicating very clearly. What I want is something like the {% include %

Re: templates & elements

2005-12-04 Thread Robert Wittams
Sorry, I just can not work out what on earth you are actually trying to achieve - too many instances of the word 'generic'... A concrete example would be best.

Re: templates & elements

2005-12-04 Thread Colin Howlett
At risk of hijacking the thread, I've been struggling with something similar (if I understand patrick correctly) Basically, I've been trying to come up with a way of including re-usable 'pagelets' or sub-templates into a parent template that are rendered with their own local context generated by g

templates & elements

2005-12-03 Thread patrick k
i´ve been asking that question before. but now, i do have a somehow detailed description at: http://www.vonautomatisch.at/framework/dkit/description.php?id=1 basically, we´d like to split a site into a main template, into boxes (div-structures) and elements (content). then, we´d like the administ