Is there a way to check if a template group exists either in the templates or in a add-on?
For example, I would want to do something like this
{if {exp:foo:template_exists name="blog/test"} == "true"}
{embed="bar/qux"}
{if:else}
{redirect="404"}
{/if}
{exp:foo:template_exists}
isn't really implemented. The reason why I was asking this question is to that I can implement it.