public marks

PUBLIC MARKS with tags template & django

2010

For Some Value of "Magic": Templating Systems

by marco
Even with a pure MVC architecture Jinja2's argument-passing enhancements would be an improvement - as Armin says, making the couplings explicit would be a Pythonic thing to do.

ojii's django-classy-tags at master - GitHub

by ghis (via)
The goal of this project is to create a new way of writing Django template tags which is fully compatible with the current Django templating infrastructure. This new way should be easy, clean and require as little boilerplate code as possible while still staying as powerful as possible.

2009

Python Template languages (Part 1 — Django)

by marco
As for logic in [Django] templates, well, I do tend to agree with Jacob — I'd rather add a bit of salt now and again than have to worry about too much already being baked in :)

2008

2007

Django snippets: Switch/case tags.

by greut
Meant mostly as a demo of how to do complex block tags, here's a switch/case implementation.

2006

Django | Documentation | Template guide

by fredbird (via)
Django's template language is designed to strike a balance between power and ease. It's designed to feel comfortable to those used to working with HTML. If you have any exposure to other text-based template languages, such as Smarty or CheetahTemplate, you should feel right at home with Django's templates. Templates A template is simply a text file. It can generate any text-based format (HTML, XML, CSV, etc.). A template contains variables, which get replaced with values when the template is evaluated, and tags, which control the logic of the template.

PUBLIC TAGS related to tag template

alire +   article +   digg +   django +   doc +   documentation +   html +   jinja +   lang:en +   pagination +   python +   snippets +   tag +   template-engine +   templates +   tutorial +  

Active users

marco
last mark : 07/12/2010 20:06

ghis
last mark : 07/10/2010 23:04

krachot
last mark : 20/03/2009 10:19

greut
last mark : 04/07/2007 09:57

fredbird
last mark : 13/09/2006 20:07

dcancel
last mark : 11/03/2006 03:03