convert cookbook index page to template
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 31 Oct 2010 10:38:34 +0000 (11:38 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 31 Oct 2010 10:38:34 +0000 (11:38 +0100)
angular-server.pl
public/Cookbook/index.html [deleted file]
templates/Cookbook.html.ep [new file with mode: 0644]

index 6df0cbe..f90740e 100755 (executable)
@@ -100,6 +100,8 @@ get '/demo/:groovy' => sub {
     $self->render(text => $self->param('groovy'), layout => 'funky');
 };
 
+get '/Cookbook' => 'Cookbook';
+
 
 app->start;
 __DATA__
diff --git a/public/Cookbook/index.html b/public/Cookbook/index.html
deleted file mode 100644 (file)
index b1d197f..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<html>
- <head>
-  <title>&lt;angular/&gt; CookBook examples</title>
- </head>
-<body>
-
-<h1>&lt;angular/&gt; CookBook examples</h1>
-
-<div>
-Examples from
-<a href="http://angularjs.org/">&lt;angular/&gt</a>
-<a href="http://angularjs.org/Cookbook">Cookbook</a>
-
-<ul>
-
-<li>
-<a target="HelloWorld" href="1-HelloWorld.html">HelloWorld</a>
-<a href="http://angularjs.org/Cookbook:HelloWorld">wiki</a>
-
-<li>
-<a target="BasicForm" href="2-BasicForm.html">BasicForm</a>
-<a href="http://angularjs.org/Cookbook:BasicForm">wiki</a>
-</ul>
-
-</div>
-
-</body>
-</html>
diff --git a/templates/Cookbook.html.ep b/templates/Cookbook.html.ep
new file mode 100644 (file)
index 0000000..b1d197f
--- /dev/null
@@ -0,0 +1,28 @@
+<html>
+ <head>
+  <title>&lt;angular/&gt; CookBook examples</title>
+ </head>
+<body>
+
+<h1>&lt;angular/&gt; CookBook examples</h1>
+
+<div>
+Examples from
+<a href="http://angularjs.org/">&lt;angular/&gt</a>
+<a href="http://angularjs.org/Cookbook">Cookbook</a>
+
+<ul>
+
+<li>
+<a target="HelloWorld" href="1-HelloWorld.html">HelloWorld</a>
+<a href="http://angularjs.org/Cookbook:HelloWorld">wiki</a>
+
+<li>
+<a target="BasicForm" href="2-BasicForm.html">BasicForm</a>
+<a href="http://angularjs.org/Cookbook:BasicForm">wiki</a>
+</ul>
+
+</div>
+
+</body>
+</html>