You did not miss anything. It lacks that functionality, making it necessary to template the inner part, and then use that within an outer part.
Fully-featured templating libraries provide this in the form of special syntax. This does not provide that level of capability.