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,
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
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
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
4 matches
Mail list logo