Does Django have HTML helpers? -


does django have template tags generate common html markup? example, know can url using

{% url mapper.views.foo %} 

but gives me url , not html code create link. django have similar rails' link_to helper? found django-helpers since common thing thought django have built-in.

no doesn't.

james bennett answered similar question while back, regarding rails' built-in javascript helpers.

it's really unlikely django ever have 'helper' functionality built-in. reason, if understand correctly, has django's core philosophy of keeping things loosely coupled. having kind of helper functionality built-in leads coupling django specific javascript library or (in case) html document type.

eg. happens if/when html 5 implemented , django generating html 4 or xhtml markup?

having said that, django's template framework flexible, , wouldn't terribly difficult write own tags/filters did wanted. i'm designer myself, , i've been able put couple custom tags worked charm.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -