Update for newer TK.
New helper for defining template-y resources.