From: Matt S Trout <mst@shadowcat.co.uk>
Date: Tue, 31 Jul 2012 20:55:46 +0000 (+0000)
Subject: kill .ht* files, test pagedata plugin
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=576f44e128834326c012537275775970393fbe3b;p=scpubgit%2FApp-SCS.git

kill .ht* files, test pagedata plugin
---

diff --git a/.gitignore b/.gitignore
index e69de29..b76d11b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+.ht*
diff --git a/t/02simple.t b/t/02simple.t
index 1854a8f..8d57fcb 100644
--- a/t/02simple.t
+++ b/t/02simple.t
@@ -41,6 +41,10 @@ like(
   'Layout woven correctly'
 );
 
-warn $simple1->_content_zoom->to_html;
+like(
+  $simple1->_content_zoom->to_html,
+  qr{<title[^>]*>Simple 1<}s,
+  'Page data interpolated'
+);
 
 done_testing;
diff --git a/t/data/share/pages/simple/.htcache.1.html.json b/t/data/share/pages/simple/.htcache.1.html.json
deleted file mode 100644
index 0c27fc5..0000000
--- a/t/data/share/pages/simple/.htcache.1.html.json
+++ /dev/null
@@ -1 +0,0 @@
-{"keywords":"","created":"","subtitle":"","plugins":"","html":"<html>\n  <head>\n    <title>Simple 1</title>\n  </head>\n  <body>\n    <h1>Hello world</h1>\n  </body>\n</html>\n","title":"Simple 1","description":""}
\ No newline at end of file
diff --git a/t/data/share/templates/.htcache.layout.html.json b/t/data/share/templates/.htcache.layout.html.json
deleted file mode 100644
index 57e9c50..0000000
--- a/t/data/share/templates/.htcache.layout.html.json
+++ /dev/null
@@ -1 +0,0 @@
-{"keywords":"","created":"","subtitle":"","plugins":"","html":"<html data-wrap=\"html\">\n  <head data-replace=\"head\" />\n  <body>\n    <div id=\"content\">\n      <div data-replace=\"h1\" />\n    </div>\n  </body>\n</html>\n","title":"","description":""}
\ No newline at end of file
diff --git a/t/data/share/templates/layout.html b/t/data/share/templates/layout.html
index 946c744..27c4dd5 100644
--- a/t/data/share/templates/layout.html
+++ b/t/data/share/templates/layout.html
@@ -1,5 +1,7 @@
 <html data-wrap="html">
-  <head data-replace="head" />
+  <head>
+    <title class="page title" />
+  </head>
   <body>
     <div id="content">
       <div data-replace="h1" />