1. Benoît Bryon
  2. django-formrenderingtools
  3. Issues
Issue #9 resolved

Simplify tags: use more "natural" names

Benoît Bryon
repo owner created an issue

In {% render_form ... %} the term "render" is quite obvious: we are in templates, so the goal is to render something. Wouldn't {% form ... %} be more natural?

So we could have {% label ... %} and {% field ... %} too.

Then the first argument may not be explicitely named. I mean: {% form my_form ... %} rather than {% form form=my_form ... %}

If the first argument is a variable named "form", then it could become optional. This would be "convention over configuration". So the most simple tag would be {% form %}.

The same logic could be applied to {% field %} and {% label %} where the implicit parameter is the {{ field }} context variable.

Comments (3)

  1. Log in to comment