You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/release/components/template-tag-format.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -298,6 +298,14 @@ class Example extends Component {
298
298
299
299
If in an environment with compilation, omitting the `/runtime` at the end of the import allows ahead-of-time compilation to occur on components created with `template()` for better runtime performance.
300
300
301
+
Without specifying `/runtime`, there are additional restrictions required for the argument passed to `template()`:
302
+
- it must be a string literal
303
+
304
+
With the `/runtime`, the argument passed to `template()` can be an extpression, for example:
0 commit comments