{template_exists tpl="foobar"}{include "foobar"}{/template_exists} block.template_exists.php template_exists($template) ){ return $content; } return ""; } ?> ================================================================================= {template_exists tpl="foobar" var="doesit"}{if $doesit}{include file="foobar"}{/if} function.template_exists.php assign($assignTo, $smarty->template_exists($template) ? 1 : 0); } ?>