django-elm
django-elm copied to clipboard
A framework for using Elm programs in Django
When messing with the flags file for a given program it's possible to create python errors. When djelm is in watch mode it surfaces these errors in the logs and...
[Formsets](https://docs.djangoproject.com/en/5.2/topics/forms/formsets/) are actually pretty rad. Django does some clever tricks to enumerate the forms on submission which could easily be handled by Elm. Formsets of course render static forms which...
When running the addhandlers strategy djelm create a handlers file for that particular elm program. While djelm is in it's watch phase, it will see the handlers file change but...
Parcel creates a cache file it uses to perform optimised builds. When using the watch strategy and switching between branches it can detect that nothing has changed cache wise because...
Not sure how useful these will be but it would be handy to provide handlers for the update and destroy lifecycles that defo provides. ```ts return { // Called whenever...
Djelm makes it incredibly easy to sprinkle elm programs across a server generated html django template and as such, it's very easy to end up with a handful of programs...
I'm not sure if this is even possible but it would be sick to not need to rely on browser reload to reload the entire page every time there is...
StringFlag has a literal option but it only validates that the string is literal and will error if that's not the case. For example in the following CustomTypeFlag: ```python CustomTypeFlag(variants=[("One",...
This flag definition: ```python TempFlags = Flags(CustomTypeFlag(variants=[])) ``` Fails hard because djelm is being a dick regarding the empty variants. It would make more sense to use pydantic to ensure...
Noticed this: ```python """ This file was auto-generated by djelm 0.18.2 For the best developer experience ensure the following: - TableFlags variable is not renamed. - The key variable value...