/[Frey]/trunk/lib/Frey/Designer.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Designer.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 201 by dpavlin, Tue Oct 28 22:13:08 2008 UTC revision 213 by dpavlin, Fri Oct 31 19:51:51 2008 UTC
# Line 43  use HTML::ResolveLink; Line 43  use HTML::ResolveLink;
43    
44  sub path {  sub path {
45          my $self = shift;          my $self = shift;
46          my $path = 'templates/www.carnet.hr/' . $self->uri->path;          my $path = join('/', ( 'templates', $self->uri->host, $self->uri->path ) );
47          $path .= '.html' if $path !~ m/\.\w+$/;          $path .= '.html' if $path !~ m/\.\w+$/;
48          return $path;          return $path;
49  }  }
# Line 81  sub get_page { Line 81  sub get_page {
81          return $body;          return $body;
82  }  }
83    
84  sub html {  sub request {
85      my ( $self, $req ) = @_;      my ( $self, $req ) = @_;
86    
87          my $body = $self->get_page;          my $body = $self->get_page;

Legend:
Removed from v.201  
changed lines
  Added in v.213

  ViewVC Help
Powered by ViewVC 1.1.26