Hacker News new | past | comments | ask | show | jobs | submit login

I think the answer to that is probably "as good as soy, but with modern ergonomics". E4X was basically this and I think it's a much nicer way to build DOM trees than strings since you can't create invalid markup or concat partial tags. It also lets you reuse subtrees naturally where innerHTML makes that impossible.



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

Search: