If you consult the documentation, you will see it has code examples. It seems to me that what you're looking for are inclusion tags. Django is famous for its high quality documentation so I doubt it can't help you.
Erik P.S. no HTML tables for layout! :) On 25.08.2008, at 3:05, Leaf wrote: > > Also, I was wondering if you could provide me with one could do the > same thing, but with a variable. > > I'm sorry if this seems a bit freeloader, but I don't quite understand > the custom tag docs and think it would be easier to learn by example > with tags that do the kind of things I'd write tags to do. > > Regards, > Leaf > > On Aug 24, 8:01 pm, Leaf <[EMAIL PROTECTED]> wrote: >> It's me again. After yelling, "I HATE WINDOWS!", switching to Mac, >> and >> not thinking about Django again until I upgraded to OS X 10.5 (with >> Python 2.5 and SQLite 3 included), I've decided to rewrite my Dj >> Styles application to brush up on my skills. >> >> One of the fundamental concepts of Dj Styles is putting content in >> "blocks" with headers and bodies, so I was wondering if anyone could >> give me examples of custom template tags that could simply echo HTML >> code to make it easier on template authors to write the blocks. I'm >> thinking of something like: >> >> {% blockhead %} >> becoming: >> <table><tr><td class="blockheader"> >> >> Can anyone give me a skeleton template tag that I can put my own >> custom HTML into? >> >> Regards, >> Leaf > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---