Hacker News new | past | comments | ask | show | jobs | submit login

I had a similar workaround in a project, it did something like this:

    {% form.name|attrs:"class='foo', maxlength=20" %}
If Django templates allowed function calls however (as Jinja2 does) that would eliminate the need for a lot of these tags.



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: