Compile template tag to hyperscript #2803
marcodpt
started this conversation in
Show and tell
Replies: 2 comments
-
@marcodpt I agree that opening an issue here is probably not the appropriate place for this. I'd recommend you open a show-n-tell thread over in the #general stream of the Mithril Zulip Chat: https://mithril.zulipchat.com/ |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'll just convert this into a discussion. Edit: done (and put in the right category) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a view engine based on the DOM template tag, which compiles to hyperscript functions:
tint
See for example what a simple
TODO
app looks like:LIVE PREVIEW
In this example, what was achieved was the total separation of the javascript layouts, without using build steps, and only introducing as a dependency a library with ~130 lines of javascript code.
Which I find extremely useful for maintaining large projects, especially working with designers who only have knowledge of css and html.
Another great feat that was achieved is that in the examples I build the same app:
Without changing absolutely anything in the model and layouts.
I'm open to listening to suggestions, solving bugs, and helping with any problems or features that the community deems necessary.
Sorry for opening an issue, but I didn't know a better way to expose my work which I believe is extremely useful for working with frameworks based on hyperscript.
Keep up the wonderful work you guys do with the mithril.js!
Beta Was this translation helpful? Give feedback.
All reactions