- or download this
<html><body>
<p>before</p>
<include file ="hh.html">
<p>after</p>
</body></html>
- or download this
#!/usr/bin/perl
...
use File::Slurp qw/read_file/;
return read_file($_[0]);
}
- or download this
$html =~ s/<include file="([^"]+)">/&add_template($1)/gexi
- or download this
if(!-f $_[0]){
return "Could not include template '$_[0]' because: NO FILE"
...
return "Could not include template '$_[0]' because: NO ACCESS TO FILE
+";
}