2 ms·
"JSX-inspired" caught me off gaurd, the only thing JSX could inspire me to do was build something so I never had to touch it again, I landed on something simila
by jazzyjackson 4y ago
"JSX-inspired" caught me off gaurd, the only thing JSX could inspire me to do was build something so I never had to touch it again, I landed on something similar to what you have here, I call it "Elementary"
Here's the JSON for a landing page written in my syntax: https://github.com/jazzyjackson/lookalive/blob/master/docs/index.elem.json https://github.com/jazzyjackson/lookalive/blob/master/docs/i...
In another project I use it extensively to mix javascript in with the object syntax as you would with JSX: https://github.com/lookalive-software/geodesy/blob/newfocus/source/lib/paintmask.js https://github.com/lookalive-software/geodesy/blob/newfocus/...
The implementation is fairly simple, given JSON returns an HTML string.
https://github.com/lookalive-software/elementary/blob/master/elementary.ts https://github.com/lookalive-software/elementary/blob/master...