Re:Deku: How we built our functional alternative to React
by grayrest on Monday May 11, 2015 @10:20PM
(#9529205)
You're in luck. ES6 introduces quasi-literals which are multi-line and will do exactly what you want. You can even tag them to set up parsing.
jsx`<div><p>${hello_world}</p></div>`
I don't know why it'd be a better option. You're moving the time/cost of parsing client side and preventing minification. If you're going to do a build time parse, I don't understand what the extra quoting buys you.
Re:Deku: How we built our functional alternative to React
by insin on Tuesday May 12, 2015 @02:36AM
(#9529904)
Relevant: "Why Not Template Literals?" on the JSX specification site: http://facebook.github.io/jsx/#why-not-template-literals
Introducing multiline string comments to ES6 (python syntax) would have been a better option.
""" <div> <p> {{ hello_world }} </p </div> """