Implements support for namespaced templates