Compile


Warning: These wiki pages have not been edited in years and may well be out of date/inaccurate. We recommend that you use them as a starting point for further investigation, rather than gospel.
Here is a small script I'm using for syntax checking.
Just call it with "./compile.pl filename"

#! /usr/bin/perl -w
use strict;
use HTML::Mason;
my $interp = HTML::Mason::Interp->new(allow_globals => [ qw($r $m) ]);

my $file = shift;
eval {
$interp->make_component(comp_file=>$file);
};
die $@ if $@;