* Bradley Baetz <bbaetz at acm.org> [2003-03-18 04:05]:
> Is there an easy way to discover if a template exists? 

I think you could use Template::Provider::load, which the comments
describe thusly:

  # Load a template without parsing/compiling it, suitable for use with 
  # the INSERT directive.

It returns a scalar containing the contents of the file and an error
message, but, since it doesn't compile the file (simply opens it for
reading), the only errors that can happen are file doesn't exist or
isn't readable.

(darren)

-- 
The three most dangerous things are a programmer with a soldering
iron, a manager who codes, and a user who gets ideas.

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to