Re: Parse template variables in custom tag

2011-03-22 Thread Turner
I think I've solved the issue. Rather than create a Variable object, I called parser.compile_filters(value) in the parsing function for my tag. That seems to have done the trick, and seems to internally resolve with a Variable object all the same. On Mar 21, 9:05 pm, Turner wrote: > On Mar 20,

Re: Parse template variables in custom tag

2011-03-21 Thread Turner
On Mar 20, 11:15 pm, Daniel Roseman wrote: > On Sunday, March 20, 2011 9:57:04 PM UTC, Turner wrote: > > > I'm working on a custom tag to which I would like to be able to pass > > template variables and filters. I found > > Variable(value).resolve(context) in the Django source. I > > have a coup

Re: Parse template variables in custom tag

2011-03-20 Thread Daniel Roseman
On Sunday, March 20, 2011 9:57:04 PM UTC, Turner wrote: > > I'm working on a custom tag to which I would like to be able to pass > template variables and filters. I found > Variable(value).resolve(context) in the Django source. I > have a couple of questions: > > You don't need to look at the c

Parse template variables in custom tag

2011-03-20 Thread Turner
I'm working on a custom tag to which I would like to be able to pass template variables and filters. I found Variable(value).resolve(context) in the Django source. I have a couple of questions: 1) Is it safe to use Variable()? That is, is it part of the public API? Not having visibility modifiers