Flat HTML
github.com
Flat HTML
1–10 of 48 posts
Re: Flat HTML
#2Re: Flat HTML
#3That being said, it reminded me of HAML[1] - but that uses whitespace to determine nesting.
Re: Flat HTML
#4What has the world come to if this mess is considered easier than writing some nested html tags? (Perhaps I'm not plugged into the SPA scene well enough to appreciate this project. I hope it is useful to some.) In fact, reading the examples made me check to see if the first commit to this project was today, April Fools...
Re: Flat HTML
#5Re: Flat HTML
#6 add paragraph "content"
push division
add image
add attr src "https://..."
add attr alt "cute cat"
add paragraph "more content"
pop division
...
But obviously with much terser syntax. Everyone seems to be on the declarative train these days that it's nice to see some interesting procedural work.Such a thing composes pretty nicely too since basically any sequence of statements grouped together can be used as a component.
Re: Flat HTML
#7Why go through the effort of embedding it in JSON? Why not just send plain text back and forth? If the goal is minimal markup anyway... That being said, it reminded me of HAML[1] - but that uses whitespace to determine nesting. [1] http://haml.info/
Re: Flat HTML
#8Is this an exercise? Is there an actual project somewhere doing it?
Re: Flat HTML
#9What has the world come to if this mess is considered easier than writing some nested html tags? (Perhaps I'm not plugged into the SPA scene well enough to appreciate this project. I hope it is useful to some.) In fact, reading the examples made me check to see if the first commit to this project was today, April Fools...