summaryrefslogtreecommitdiff
path: root/t/interpolate/data
diff options
context:
space:
mode:
Diffstat (limited to 't/interpolate/data')
-rw-r--r--t/interpolate/data/content_type.html1
-rw-r--r--t/interpolate/data/date.html1
-rw-r--r--t/interpolate/data/foot.html2
-rw-r--r--t/interpolate/data/head.html28
-rw-r--r--t/interpolate/data/story.html3
5 files changed, 35 insertions, 0 deletions
diff --git a/t/interpolate/data/content_type.html b/t/interpolate/data/content_type.html
new file mode 100644
index 0000000..e81f92a
--- /dev/null
+++ b/t/interpolate/data/content_type.html
@@ -0,0 +1 @@
+text/xhtml; charset=UTF-8
diff --git a/t/interpolate/data/date.html b/t/interpolate/data/date.html
new file mode 100644
index 0000000..2cdf76d
--- /dev/null
+++ b/t/interpolate/data/date.html
@@ -0,0 +1 @@
+ <h3>$yr-$mo_num-$da</h3>
diff --git a/t/interpolate/data/foot.html b/t/interpolate/data/foot.html
new file mode 100644
index 0000000..308b1d0
--- /dev/null
+++ b/t/interpolate/data/foot.html
@@ -0,0 +1,2 @@
+</body>
+</html>
diff --git a/t/interpolate/data/head.html b/t/interpolate/data/head.html
new file mode 100644
index 0000000..3984681
--- /dev/null
+++ b/t/interpolate/data/head.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html>
+<head>
+</head>
+<body>
+<pre>
+# Basic scalars
+title: $blog_title
+description: $blosxom::blog_description
+# Namespaced scalars
+Blosxom::Test::string: $Blosxom::Test::string
+# Hash values
+hash{abc}: $hash{abc}
+hash{'X-Factor'}: $hash{'X-Factor'}
+blosxom::hash{def}: $blosxom::hash{def}
+blosxom::hash{"X-Factor"}: $blosxom::hash{"X-Factor"}
+hashref->{abc}: $hashref->{abc}
+blosxom::hashref->{def}: $blosxom::hashref->{def}
+Blosxom::Test::hash{abc}: $Blosxom::Test::hash{abc}
+Blosxom::Test::hash{'X-Factor'}: $Blosxom::Test::hash{'X-Factor'}
+Blosxom::Test::hashref->{def}: $Blosxom::Test::hashref->{def}
+Blosxom::Test::hashref->{"X-Factor"}: $Blosxom::Test::hashref->{"X-Factor"}
+# Bad quoting with hash values
+hash{'X-Factor}: $hash{'X-Factor}
+hash{X-Factor'}: $hash{X-Factor'}
+hash{"X-Factor'}: $hash{"X-Factor'}
+</pre>
diff --git a/t/interpolate/data/story.html b/t/interpolate/data/story.html
new file mode 100644
index 0000000..7f3d068
--- /dev/null
+++ b/t/interpolate/data/story.html
@@ -0,0 +1,3 @@
+ <h4><a name="$fn">$title</a></h4>
+ <div>$body</div>
+ <p>posted at: $ti | path: <a href="$url$path">$path </a> | <a href="$url/$yr/$mo_num/$da#$fn">permanent link to this entry</a></p>