Hacker News new | past | comments | ask | show | jobs | submit login
HUI.js – JavaScript Front End UI Library in 657 Bytes (github.com/horlahcoded)
2 points by Horlahcoded on Jan 1, 2018 | hide | past | favorite | 4 comments



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.


have you checked HyperScript?


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).


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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: