kill .ht* files, test pagedata plugin
Matt S Trout [Tue, 31 Jul 2012 20:55:46 +0000 (20:55 +0000)]
.gitignore
t/02simple.t
t/data/share/pages/simple/.htcache.1.html.json [deleted file]
t/data/share/templates/.htcache.layout.html.json [deleted file]
t/data/share/templates/layout.html

index e69de29..b76d11b 100644 (file)
@@ -0,0 +1 @@
+.ht*
index 1854a8f..8d57fcb 100644 (file)
@@ -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 (file)
index 0c27fc5..0000000
+++ /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 (file)
index 57e9c50..0000000
+++ /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
index 946c744..27c4dd5 100644 (file)
@@ -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" />