has 'static_base_uri' => (isa => 'Str', is => 'rw', lazy_fail => 1);
+ has 'meta_info' => (
+ is => 'rw', isa => 'HashRef',
+ required => '1', default => sub { {} }
+ );
+
};
1;
arg title => $_{viewport}->title;
};
+ implements fragment meta_info {
+ render meta_member => over [keys %{$_{viewport}->meta_info}];
+ };
+
+ implements fragment meta_member {
+ arg 'meta_name' => $_;
+ arg 'meta_value' => $_{viewport}->meta_info->{$_};
+ };
+
};
1;
=for layout head_meta
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ [% meta_info %]
+
+=for layout meta_info
+
+[% call_next %]
+
+=for layout meta_member
+
+<meta name="[% meta_name %]" content="[% meta_value %]" />[% "\n" %]
=for layout head_style