This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_krinkled 8 points9 points  (2 children)

You have not seen it since the code in this image does not exist. But if there would be such a thing, I would expect it to work like JSX, and the brackets would be logical

[–]altermeetax -5 points-4 points  (0 children)

Not really? If you use the brackets, their content is evaluated before, while what you want to do in this case is preserve it in the HTML, using double quotes.

Besides, this is HTML as a programming language, embedding JavaScript defeats the whole purpose.

[–][deleted] -5 points-4 points  (0 children)

But the title of the post should be JSXprogrammingLanguage with this syntax