From: Matt S Trout 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?p=scpubgit%2FApp-SCS.git;a=commitdiff_plain;h=576f44e128834326c012537275775970393fbe3b 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{]*>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":"\n \n Simple 1\n \n \n

Hello world

\n \n\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":"\n \n \n
\n
\n
\n \n\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 @@ - + + + </head> <body> <div id="content"> <div data-replace="h1" />