dijit/_TemplatedMixin

dijit/_TemplatedMixin is a mixin for most widgets in dijit.
It takes an HTML template, and creates the widget's DOM tree according to that template.
In other words, it implements buildRendering() for you.

Note that the underscore in the name implies not that _TemplatedMixin is a private class,
but rather that it's a mixin, rather than a widget.

A template can also reference substitution variables like ${title}.
${title} references the title attribute of the widget.

However, this is not recommended, as (due to implementation details) it only handles setting of the title on widget instantiation.
In other words, myWidget.set('title', 'My new title') won't work if you use substitution variables.

See the section on "Mapping widget attributes to DOMNode attributes" in
Writing Widgets for an alternative to substitution variables.