On 26 May 2009, at 11:27 , Sam Kuper wrote:
> 2009/5/26 Bojan Mihelac <bmihe...@gmail.com>
>> is there a way to pass result of a template filter to some tag for
>> further processing?
>>
>> {% some_tag content|textile %}
>>
>> The best I came so far is something like:
>>
>> {% textile content as content2 %}
>> {% some_tag content2 %}
>>
>> With this textile, or any other filter should be rewritten as a tag
>> which does not seem DRY.
>
> I haven't used Django with Textile before, but mightn't it be  
> reasonable to
> do the textile processing in the view before handing over to the  
> template?
I don't think so, semantically the textilized version is simply a  
display format. The data itself is the original one and it could just  
as well be displayed as raw text.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to