1 package Torrus::Freeside;
7 use FS::Mason qw( mason_interps );
10 my( $fs_interp, $rt_interp ) = mason_interps('standalone', 'outbuf'=>\$outbuf);
13 my($self, $title, $stylesheet) = @_;
15 #from html-incblocks.txt
17 # <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
18 # [% IF expires %]<META HTTP-EQUIV="Refresh" CONTENT="[% expires %]"/>[% END %]
19 '<STYLE type="text/css" media="all">
20 @import url( '. $Torrus::Renderer::plainURL. $stylesheet. ' );
24 $self->freesideComponent('/elements/header.html',
37 $self->freesideComponent('/elements/footer.html');
42 sub freesideComponent {
43 my($self, $comp) = (shift, shift);
45 # my $conf = new FS::Conf;
46 $FS::Mason::Request::FSURL = $FSURL;
47 $FS::Mason::Request::FSURL .= '/' unless $FS::Mason::Request::FSURL =~ /\/$/;
48 # $FS::Mason::Request::QUERY_STRING = $packet->{'query_string'} || '';
53 #$fs_interp->exec($comp, @args); #only FS for now alas...
54 $fs_interp->exec($comp, @_); #only FS for now alas...
56 #errors? (turn off in-line error reporting?)