It's worth exploring in react but much harder to get right because it's hard to enforce restrictions in "just js"
-
-
Not really... template literals just do that for you
1 reply 0 retweets 0 likes -
Replying to @justinfagnani @trueadm and
JSX is not the same thing as template literals. And stitching together JS loops / conditionals with templates also doesn't work.
3 replies 0 retweets 2 likes -
Replying to @wycats @justinfagnani and
It does with statically analyzable tokens and expressions passed to them (aka Vue/angular directives)
1 reply 0 retweets 0 likes -
Replying to @TheLarkInn @justinfagnani and
Yes, if you eliminate the "just JS" part and add conditionals and loops to the template language, it works.
2 replies 0 retweets 0 likes -
Replying to @wycats @justinfagnani and
I also think jsx has some very powerful composition tech. So using both interchangably is very very nice. (Like pure/func to assign props)
1 reply 0 retweets 1 like -
Replying to @TheLarkInn @justinfagnani and
The powerful composition comes from functions. Which a good template language can have.
2 replies 0 retweets 2 likes -
Replying to @wycats @justinfagnani and
Mehhh Template v Template language
1 reply 0 retweets 2 likes -
-
Replying to @wycats @justinfagnani and
Twig/Underscore: Templating Language Template (in my mind): something that could be still successfully parsed with a HTML parser
2 replies 0 retweets 0 likes
Underscore is definitely not a programming language. I'm referring to something like glimmer, which has the full facilities of a PL
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.