(examples) Reorganizes some files.
authorSalvatore Iovene <salvatore@iovene.com>
Mon, 4 Feb 2013 09:11:38 +0000 (11:11 +0200)
committerSalvatore Iovene <salvatore@iovene.com>
Mon, 4 Feb 2013 09:11:38 +0000 (11:11 +0200)
examples/calf/index.html
examples/hoofbeats/index.html
grunt.js
lib/ember-latest.js [moved from examples/calf/javascripts/lib/ember-latest.js with 100% similarity]
lib/handlebars-1.0.rc.1.js [moved from examples/calf/javascripts/lib/handlebars-1.0.rc.1.js with 100% similarity]

index 95566ae..94f51b8 100644 (file)
@@ -8,7 +8,7 @@
     <meta name="description" content="An example showcasing ivi-webui's capabilities.">
     <meta name="viewport" content="width=device-width">
 
-    <link id="cowhide-theme" rel="stylesheet" href="../../cowhide-default.css">
+    <link id="cowhide-theme" rel="stylesheet" href="lib/cowhide-default.css">
     <link rel="stylesheet" href="styles/calf.css">
   </head>
 
     </script>
 
     <!-- The glorious cowhide framework. -->
-    <script src="../../cowhide.js"></script>
+    <script src="lib/cowhide.js"></script>
 
     <!-- handlebars is used in this example app for the templating. -->
-    <script src="javascripts/lib/handlebars-1.0.rc.1.js"></script>
+    <script src="lib/handlebars-1.0.rc.1.js"></script>
     <!-- ember is used in this example app for MVC. -->
-    <script src="javascripts/lib/ember-latest.js"></script>
+    <script src="lib/ember-latest.js"></script>
 
     <!-- Our glorious example app: Calf -->
     <script src="javascripts/app/app.js"></script>
index e69de29..19b6f78 100644 (file)
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+
+    <title>Hoofbeats</title>
+    <meta name="description" content="A media player">
+    <meta name="viewport" content="width=device-width">
+
+    <link id="cowhide-theme" rel="stylesheet" href="lib/cowhide-default.css">
+  </head>
+
+  <body>
+       <div class="container">
+      <div id="application"></div>
+    </div> <!-- container -->
+
+    <script src="lib/cowhide.js"></script>
+  </body>
+</html>
index 3379ad3..94d9c88 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -236,6 +236,23 @@ module.exports = function(grunt) {
           'dist/examples/widget-gallery/': 'examples/widget-gallery/**',
           'dist/docs/': 'docs/**'
         }
+      },
+      examples_lib: {
+        options: {
+          flatten: true
+        },
+        files: {
+          'dist/examples/calf/lib/': [
+            'dist/cowhide-default.css',
+            'dist/cowhide.js',
+            'lib/handlebars-1.0.rc.1.js',
+            'lib/ember-latest.js'
+          ],
+          'dist/examples/hoofbeats/lib/': [
+            'dist/cowhide-default.css',
+            'dist/cowhide.js'
+          ]
+        }
       }
     },
     exec: {