Or you might also want to check out Generic Content Tags:
http://code.google.com/p/django-template-utils/wiki/GenericContentTags

Part of the Django template utils that James put together:
http://code.google.com/p/django-template-utils/

-Michael

On Jun 3, 1:14 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat, 2007-06-02 at 14:54 -0700, [EMAIL PROTECTED] wrote:
> > Oh no, that can not be! I just read this "Writing your own template
> > tags", it is quite complicated. Isn't there another way? Something
> > like "While you fetch the text for the flatpage, check the view
> > 'random_testemonial' and then go render the template."
>
> Since the template tags for Python document is a reference document, not
> a tutorial, realise that it contains a lot more detail than you might
> necessarily need on the first pass. That can't really be helped, because
> reference docs that include all the nitty details are necessary and we
> can't always cater for the people just learning the language at the
> expense of those who are trying to do advanced things (the first group
> graduates to become the second group, but not vice verse, so the second
> group is always growing).
>
> Don't try to code anything up until you reach the "Shortcut for simple
> tags" 
> section:http://www.djangoproject.com/documentation/templates_python/#shortcut...
>
> Many tags require exactly one extra line of code to turn a function
> returning a string into a tag.
>
> Malcolm


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to