<template> tag lets us write template(s) in strict mode. Templates are more explicit and statically analyzable, so we can adopt more tools from the JavaScript ecosystem. There’s less work for Embroider to do, so we can expect app builds to be faster.
<template> tag has been around for a few years now. With the help of addons, in components and tests since 2020 and in routes since 2023.1 In short, it’s stable and you can likely use <template> tag in your projects today.
This post aims to accelerate adoption. I will show you step-by-step how to migrate an existing component, route, and test. Once you understand the idea, feel free to run my codemod to automate the steps.
Continue reading “Migrating to <template> tag”
You must be logged in to post a comment.