Currently:
-
Our processor checks the type of every interpolation on every call to html(); if the developer knows that the types of interpolations will never vary for two templates with the same .strings tuple, we should offer a fast path that cuts out the extraneous checks.
-
html() returns a Node tree, even though often all we want is a str
This issue asks us to consider and address both.
/cc @ianjosephwilson