Forms
Runique form system — declaration, validation, rendering.
Field visual rendering
Preview of all field types available in Runique
Declare a field
Manual declaration and via the #[form] proc macro
Rendering in templates
{% form.mon_form %} vs {% form.nom_form.champ %}
Helpers & URL access
Typed conversions, path_param(), from_url() and whitelisted cleaned()
v2.0 — Widget system (planned)
v2.0 will introduce a Django-inspired widget system: each model field will be able to declare its rendering type independently of its SQL type, and auto-generated fields will be overridable individually without rewriting the entire form.
Declaration via the model
image: String [widget(image, "media/articles")]
The widget is declared once in the model, the form inherits it automatically.
Individual override
Customize a single auto-generated field without rewriting all the others — like ModelForm in Django.