4 use POSIX qw
(locale_h
);
5 #setlocale(LC_ALL, 'es_ES');
9 #sub BEGIN { $ENV{'DISPLAY'} = ":0.0"; } #!/usr/bin/perl -d:ptkdb
12 use Gruta
::Source
::DBI
;
13 use Gruta
::Renderer
::Grutatxt
;
14 use Gruta
::Renderer
::HTML
;
15 use Gruta
::Template
::Artemus
;
17 my $base = '/var/www/gruta';
21 Gruta
::Source
::DBI
->new( string
=> "dbi:SQLite:$base/gruta.db" ),
24 Gruta
::Renderer
::Grutatxt
->new(),
25 Gruta
::Renderer
::HTML
->new(),
26 Gruta
::Renderer
::HTML
->new( valid_tags
=> undef ),
28 template
=> Gruta
::Template
::Artemus
->new( path
=>
30 ':/usr/share/gruta/templates/artemus/ALL' .
31 ':/usr/share/gruta/templates/artemus/es'
33 cgi
=> Gruta
::CGI
->new()