django-adapters icon indicating copy to clipboard operation
django-adapters copied to clipboard

Research existing attempts to do mirrored form rendering

Open mjtamlyn opened this issue 8 years ago • 6 comments

https://github.com/WiserTogether/django-remote-forms (Django project) https://github.com/insin/newforms (JS project which was heavily inspired by Django.forms)

mjtamlyn avatar Apr 04 '16 19:04 mjtamlyn

Might consider the Django third-party floppyforms? The rendering is based on templates instead of string interpolation. Performances are not that great (and it is focused on HTML rendering, of course), but maybe there are some interesting ideas...

mlorant avatar Apr 05 '16 12:04 mlorant

Might consider the Django third-party floppyforms? The rendering is based on templates instead of string interpolation.

I really like the idea of being able to modify the templates for form rendering. I tend to use crispy-forms to that end (although it's not quite the same).

If I recall correctly the performance problem is due to {% include %} being slow for some reason. I seem to remember @mjtamlyn having ideas about how this might be improved?

Perhaps selective use of jinja2 templates would be worth considering? (It's worth mentioning that I would prefer Django templates, however.)

meshy avatar Apr 05 '16 12:04 meshy

if floppyforms and crispy-forms are included in this list, perhaps it would be good to look also:

https://github.com/jpic/xmodelform https://github.com/fusionbox/django-betterforms

luzfcb avatar Apr 05 '16 12:04 luzfcb

I don't think floppyforms or crispy forms are in scope for this issue - as far as I'm aware they're both entirely focused on backend rendering. This issue is more about being able to render on the frontend.

LilyFoote avatar Apr 05 '16 12:04 LilyFoote

This issue is more about being able to render on the frontend.

Aah, sorry about that. I'd not understood the issue title.

meshy avatar Apr 05 '16 12:04 meshy

Here is on the client form rendering for the react-native

https://github.com/gcanti/tcomb-form-native https://github.com/gcanti/tcomb-json-schema

kmmbvnr avatar Apr 08 '16 08:04 kmmbvnr