Live data from Hacker News

Show HN: Bepis – Crazy Format for HTML+CSS in JavaScript

github.com

11–20 of 24 posts

Re: Show HN: Bepis – Crazy Format for HTML+CSS in JavaScript

#11
I love me a good, simple, jokey template language. Reminds me of the one I made a few years back[1]. Everyone should write a small template language of their own - it's a neat parser-writing exercise, and the rendering implementation can be comparatively trivial (assuming you don't plan to actually use it in a place where rendering perf matters).

[1] http://ham.io/not.js/

Re: Show HN: Bepis – Crazy Format for HTML+CSS in JavaScript

#13

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…

Why no examples in the readme?

Re: Show HN: Bepis – Crazy Format for HTML+CSS in JavaScript

#14

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…

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.

Re: Show HN: Bepis – Crazy Format for HTML+CSS in JavaScript

#15

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…

Why no examples in the readme?

snap!

Re: Show HN: Bepis – Crazy Format for HTML+CSS in JavaScript

#16

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…

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

#17
post #12

Nice, this reminds me of the Jade templating language [0], although after a bit of Googling I see it's now called Pug [1]. [0] http://jade-lang.com/ [1] https://github.com/pugjs/pug

Pug is actually awesome. I use it daily with Vue and I just introduced it to a project I was put on recently.
Post reply on HN