| Bryar documentation | Contained in the Bryar distribution. |
Bryar::Frontend::Static - Static renderer for Bryar
This is a frontend to Bryar which is used when Bryar is being used to create static HTML pages.
my $frontend = Bryar::Frontend::Static->new(
url => "http://your.blog.site/base/",
path => "id_1234",
fh => \*file
);
$bryar->config->frontend($frontend);
$bryar->go;
This module is free software, and may be distributed under the same terms as Perl itself.
Copyright (C) 2003, Simon Cozens simon@kasei.com
| Bryar documentation | Contained in the Bryar distribution. |
package Bryar::Frontend::Static; use base 'Bryar::Frontend::Base'; use 5.006; use strict; use warnings; use Carp; our $VERSION = '1.1';
sub new { my $class = shift; bless { @_ }, $class; } sub obtain_url { shift->{url} } sub obtain_path_info { shift->{path} } sub obtain_params { () } sub get_header { "" } sub send_data { my $fh = shift->{fh}; print $fh "\n",@_ } sub send_header { } 1;