Not sure what you mean by "the model view", but its possible to create
code to parse the text and use that in a specialised tag.  See, for
example,
http://code.djangoproject.com/wiki/contentBBCode_parser


On Dec 24, 4:13 pm, Jonas Geiregat <[email protected]> wrote:
> Hello,
>
> I have some content that is stored as models.TextField().
> Content is mainly text but there should be option to add additional parsing.
> Such as a code block [code] which should be formatting in some way.
>
> But where would you best place this code ?
> Inside the model view or are there options for implementing such behavior 
> using the built-in template language ?
>
> Regards,
>
> Jonas Geiregat
> [email protected]

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

Reply via email to