Gary Wilson wrote:
> I did realize an example where the title filter's implementation would
> be desired. When you've got a possessive noun:
>
>>>> Template("{{ text|title }}").render(Context({"text": "the boy's blob"}))
> "The Boy's Blob"
>
> as opposed to:
>>>> "the boy's blob".title()
> "The Boy'S Blob"
someone recently complained that str.title() wasn't quite as clever as
text|title
over at comp.lang.python, so I assume that whatever you do, someone will
think it's doing the wrong thing.
</F>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---