News for hackers. Stuff that matters.
Re:Show HN: Bepis – Crazy Format for HTML+CSS in JavaScript by NohatCoder on Tuesday January 07, 2020 @02:58AM (#21977975)
Time to shill my own alternative.

https://github.com/NoHatCoder/DOM_Maker

No parser, just a bunch of JavaScript functions that nest nicely, to create dense and readable DOM generation code.

Might be time for putting a 1.0 sticker on it.

As for Bepis, the mechanism by which elements nest seem complicated, as far as I understand it is controlled by sprinkling , and . throughout the string, I don't get why this would be necessary.

Re:Show HN: Bepis – Crazy Format for HTML+CSS in JavaScript by undecisive on Tuesday January 07, 2020 @04:45AM (#21978445)
As someone else mentioned, everyone should do this. I've got a similar coffeescript one:

https://github.com/undecided/tg

(totally usable in vanilla JS too)

Re:Show HN: Bepis – Crazy Format for HTML+CSS in JavaScript by scotty79 on Tuesday January 07, 2020 @04:34AM (#21978396)
Why no examples in the readme?
Re:Show HN: Bepis – Crazy Format for HTML+CSS in JavaScript by kinlan on Tuesday January 07, 2020 @04:36AM (#21978407)
snap!
Re:Show HN: Bepis – Crazy Format for HTML+CSS in JavaScript by NohatCoder on Tuesday January 07, 2020 @01:14PM (#21982750)
I guess I am better at writing libraries than marketing. So that is definitely on the todo list now.
Re:Show HN: Bepis – Crazy Format for HTML+CSS in JavaScript by kinlan on Tuesday January 07, 2020 @04:36AM (#21978406)
It would be great for people just visiting DOM_Maker to be able to quickly see an example in the README file of the syntax etc.