Re:HUI.js – JavaScript Front End UI Library in 657 Bytes
by nofilter on Monday January 01, 2018 @03:42PM
(#16047932)
Why would anyone prefer this over Handlebars or any other templating language loaded in via separate files over Ajax, which is much nicer on the eyes? This just seems to me like it can get very complex and spaghetti-like very easily.
[ Parent
| on HN ]
Re:HUI.js – JavaScript Front End UI Library in 657 Bytes
by Horlahcoded on Monday January 01, 2018 @05:34PM
(#16048409)
have you checked HyperScript?
Re:HUI.js – JavaScript Front End UI Library in 657 Bytes
by nofilter on Monday January 01, 2018 @05:39PM
(#16048436)
I haven't, but just did. It's pretty much the same in that you create inline HTML in Javascript. I'm not saying this is wrong. I'm just wondering why would someone prefer this method to a file-based templates (like Handlebars).
Re:HUI.js – JavaScript Front End UI Library in 657 Bytes
by Horlahcoded on Monday January 01, 2018 @06:14PM
(#16048600)
Thanks for pointing that out, you can write your code in separate file then include in the HTML. i have updated the docs to note that.