Add a template type argument to allow js.php and similar