A t-string resembles an f-string, but it produces a Template object instead of immediately forming a plain string. Literal pieces and interpolated values stay separate for the consumer to process.
The demo moves an input value through separation and escaping. A template is not automatically safe for HTML or SQL; its consumer must apply the right escaping or parameterization.
When to use
Use it when a template API must inspect or transform interpolated values before rendering.