Add hash/hashref interpolation support to blosxom.cgi, and tests.
[pkg/blosxom.git] / t / interpolate / data / head.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html>
4 <head>
5 </head>
6 <body>
7 <pre>
8 # Basic scalars
9 title: $blog_title
10 description: $blosxom::blog_description
11 # Namespaced scalars
12 Blosxom::Test::string: $Blosxom::Test::string
13 # Hash values
14 hash{abc}: $hash{abc}
15 hash{'X-Factor'}: $hash{'X-Factor'}
16 blosxom::hash{def}: $blosxom::hash{def}
17 blosxom::hash{"X-Factor"}: $blosxom::hash{"X-Factor"}
18 hashref->{abc}: $hashref->{abc}
19 blosxom::hashref->{def}: $blosxom::hashref->{def}
20 Blosxom::Test::hash{abc}: $Blosxom::Test::hash{abc}
21 Blosxom::Test::hash{'X-Factor'}: $Blosxom::Test::hash{'X-Factor'}
22 Blosxom::Test::hashref->{def}: $Blosxom::Test::hashref->{def}
23 Blosxom::Test::hashref->{"X-Factor"}: $Blosxom::Test::hashref->{"X-Factor"}
24 # Bad quoting with hash values
25 hash{'X-Factor}: $hash{'X-Factor}
26 hash{X-Factor'}: $hash{X-Factor'}
27 hash{"X-Factor'}: $hash{"X-Factor'}
28 </pre>