Support looking up templates via their slug key in addition to their normal id. This is to allow parse directives with slug keys.