-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* Bryce Harrington <bryce at osdl.org> [2003-08-06 14:07]:
> Probably; what I do is `tail -f /var/log/httpd/error_log` in another
> window and watch for errors as I reload.

Don't forget that basic syntax checks can be accomplished by running the
template through tpage or it's equivalent.

For my larger TT-based projects, I set up a simple script that creates a
Template::Provider object with the appropriate settings and calls
fetch on the templates, to check for syntax errors:

  #!/usr/local/bin/perl -w
  # tt-check

  use strict;
  use Template::Provider;

  # options specific to this project, e.g., ABSOLUTE, INCLUDE_PATH
  my %options = (ABSOLUTE => 1);

  my $p = Template::Provider->new(\%options);

  for my $arg (@ARGV) {
      my ($d, $e) = $p->fetch($arg);
      warn"$d" if defined($e);
  }

(darren)

- -- 
It is impossible to travel faster than the speed of light, and
certainly not desirable, as one's hat keeps blowing off.
    -- Woody Allen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: This message is digitally signed and can be verified for authenticity.

iD8DBQE/MUwuzsinjrVhZaoRAjlgAJ0Q1+2fSW7Lz9EpVEMFOh4+bdTPIQCfaaXW
UVxhFJMyMkhiwFDsgvJV7lo=
=GtFE
-----END PGP SIGNATURE-----

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

Reply via email to