News

Python 3.14 has a new feature called the template string, or t-string, type. A t-string superficially resembles an f-string, but it’s designed to do something very different. Instead of just ...
What is “syntax highlighting”? If you’re using an IDE, no doubt you’ve noticed that as you type code in it changes color. This is what’s called “syntax highlighting”, and it’s done automatically by ...
Rendering the component Next up is the render method, which returns view markup via the html () method and a template literal. The syntax used in the literal string is tagged literals.
Literal translations, with their occasional bits of jarring syntax, make us uncomfortable, but it’s their very intent to make us uncomfortable.
Brahmos instead leverages a relatively recent addition to the JavaScript language, i.e. tagged template literals —like nanohtml, lighterhtml, lit-html, or Microsoft’s fast-element.
This is fine if you are creating a template literal yourself, but makes things difficult if the templating is happening on user input where you have to communicate these restrictions. If you try a ...
Any JavaScript expression can be used in a template, from any scope available where the template is defined. Goal 3 makes tempalte literals an obvious choice over non-standard syntax like JSX. Goal 4 ...