--- /dev/null
+\r
+body\r
+{\r
+ font-family: Arial, Helvetica, sans-serif;\r
+ font-size: 12px;\r
+ font-weight: normal;\r
+ color: #000000;\r
+ background-color: #CAB680;\r
+ text-align: left;\r
+ padding: 0;\r
+ margin: 0;\r
+ text-align: center;\r
+ vertical-align: middle;\r
+}\r
+\r
+a\r
+{\r
+ font-size: 14px;\r
+ font-weight: bold;\r
+ color: #49241D;\r
+ text-decoration: none;\r
+}\r
+\r
+a:hover\r
+{\r
+ color: #864135;\r
+ text-decoration: underline;\r
+}\r
+\r
+div#background\r
+{\r
+ padding: 0;\r
+ margin: auto;\r
+ width: 1015;\r
+ height: 749;\r
+ text-align: left;\r
+ vertical-align: top;\r
+}\r
+\r
+table#mainTable\r
+{\r
+ table-layout: fixed;\r
+ background-image: url(background_body.jpg);\r
+ background-position: top left;\r
+ background-repeat: no-repeat;\r
+}\r
+\r
+table#mainTable,\r
+table#mainTable td\r
+{\r
+ padding: 0;\r
+ margin: 0;\r
+ border: 0;\r
+}\r
+\r
+td#upperLeft\r
+{\r
+ width: 103px;\r
+ height: 144px; \r
+}\r
+\r
+td#upperRight\r
+{\r
+ width: 912px;\r
+ background-image: url(cards1.jpg);\r
+ background-position: 550px 5px;\r
+ background-repeat: no-repeat;\r
+ text-align: right;\r
+ vertical-align: bottom;\r
+ font-variant: small-caps;\r
+}\r
+\r
+td#lowerRight\r
+{\r
+ background-color: #D6C796;\r
+ min-height: 603px;\r
+ text-align: left;\r
+ vertical-align: top;\r
+ background-image: url(background_divmain.jpg);\r
+ background-position: 1px 1px;\r
+ background-repeat: no-repeat;\r
+}\r
+\r
+div#main\r
+{\r
+ padding: 0;\r
+ margin: 0;\r
+ border: 1px solid #FFFFFF;\r
+ width: 910px;\r
+ min-height: 601px;\r
+ overflow: hidden;\r
+}\r
--- /dev/null
+\r
+div.pod\r
+{\r
+ padding: 10px;\r
+}\r
+\r
+pre\r
+{\r
+ border: 1px solid #FFFFFF;\r
+ background-color: #CAB680;\r
+ padding-top: 10px;\r
+}
\ No newline at end of file
sub layout_zoom {
my $self = shift;
$self->{layout_zoom} ||= do {
- HTML::Zoom->from_string($self->_read_data)
+ HTML::Zoom->from_string($self->_layout_html)
};
}
+sub _layout_html {
+ my $self = shift;
+ my $file = $self->config->{pages_dir}.'/index.html';
+ if (-f $file) {
+ return do { local(@ARGV, $/) = ($file); <> }
+ } else {
+ return $self->_read_data
+ }
+}
+
sub render_html {
my ($self, $data) = @_;
return $data if ref($data) eq 'ARRAY';