Is there a way to hide error output from template processing? In particular, I'd like to not have an error message show up with an <include> tag if the source is missing.
More detail: I'm putting together a sort of dynamic templating system, where a template includes a list of other sub-templates, determined at runtime. The included sub-templates could of course do the same, and well, you get the idea. The list of sub-templates would come from the database, and the main template page would have something like:
<list name="subtemplates">
<include src="@subtemplates:item@>
</list>
However, if a particular subtemplate is not found, it outputs an error message "No script or template found for [whatever]". Obviously, the best thing is to prevent missing templates from getting into the include list, but just in case I'd like to prevent this ugliness from reaching users.