Commits

Scott Nixon  committed 5976ce1

Update view name.

  • Participants
  • Parent commits 291d2a8

Comments (0)

Files changed (2)

       <ul class="albums"></ul>
     </script>
 
-    <script type="text/template" id="playlist-template">
+    <script type="text/template" id="recipelist-template">
       <h1>Recipe List</h1>
       <ul class="albums">
       </ul>
     <script type="application/javascript">
       jQuery(function() {
         window.library.reset([{
-        "featured_items": "0", 
-        "protein": "2.00", 
         "id": 81, 
-        "recipe_enable_comments": false, 
-        "published_on": "2010-02-07 00:00:00", 
-        "carbohydrates": "23.00", 
-        "sugar": "10.00", 
         "recipe_name": "Acorn Squash & Apple Soup", 
-        "recipe_date_lastmod": "2011-08-01", 
         "recipe_description": "<p>Like warm apple pie in a bowl!</p>\r\n<p>Chef's Notes: Any red-skinned apple will do such granny smith, gala or mcintosh. You can also substitute brown sugar for the pure maple syrup.</p>", 
-        "fiber": "2.00", 
-        "recipe_date_create": "2010-02-07", 
         "recipe_servings": "4.00", 
-        "fat": "0.20", 
-        "cook_time": "20.00", 
-        "calories": "94.00", 
         "recipe_slug": "acorn-apple-soup", 
-        "prep_time": "10.00", 
         "recipe_instructions": "<p>Cook whole squash in microwave for 8-10 minutes or until you can stab it with a fork easily. Allow the squash to slightly cool so it is safe to handle. Cut in half, scoop out the seeds and discard. Scoop out the flesh and transfer to a medium saucepan. Add apples, spices and 1 cup water, stirring to mix completely. Bring to a boil over high heat then reduce to low and simmer until apple pieces are very tender, about 15-20 minutes. Transfer to a blender, add non-dairy milk and puree until smooth and creamy. Add syrup and blend again.</p>", 
-        "cookbook": null, 
-        "rec_tags": "Soy-Free Gluten-Free Quick Soups", 
-        "cookbook_page": "",
         "ingredients": [{
                 "title": "Black Beans",
                 "url": "music/blue.mp3"
                 "title": "Smoked Paprika",
                 "url": "music/jazz.mp3"
             }]
-    }]);
+    },
+    {
+        "id": 97, 
+        "recipe_name": "Baked Vegan Corndogs", 
+        "recipe_description": "<p>Before I was a health conscious vegan, I loved buying frozen vegetarian corndogs. When the Internet failed to provide me with a recipe for a <em>baked</em> (not fried!) corndog, I created my own. <br /><br />Chef's Note: I like to use fat-free vegan hot dogs such as Smart dogs or Tofu dogs, but any vegetarian hot dog will do. I also hear using a Twinkie Pan results in perfectly shaped corndogs.</p>", 
+        "recipe_servings": "6.00", 
+        "recipe_slug": "vegan-baked-corndogs", 
+        "recipe_instructions": "<p>Preheat oven to 450 F. Grease a cookie sheet or line with parchment paper and set aside. Mix corn</p>", 
+        "ingredients": [{
+                "title": "Black Beans",
+                "url": "music/blue.mp3"
+            },
+            {
+                "title": "Smoked Paprika",
+                "url": "music/jazz.mp3"
+            }]
+
+    }, 
+    {
+        "id": 149, 
+        "recipe_name": "Banana-Pumpkin Muffins", 
+        "recipe_description": "<p>A taste of autumn bliss...</p>", 
+        "recipe_servings": "12.00", 
+        "recipe_slug": "banana-pumpkin-muffins", 
+        "recipe_instructions": "<p>Preheat oven to 350 F. Grease muffin tin or spray paper liners to prevent sticking and set aside. In a large bowl, whisk flour, baking powder, baking soda, salt and pumpkin pie spice together, adding more pumpkin pie spice if desired. Then whisk in sugar and set aside. Transfer bananas to a blender or food processor. Spotted and browning bananas are best. Whiz un</p>", 
+        "ingredients": [{
+                "title": "Black Beans",
+                "url": "music/blue.mp3"
+            },
+            {
+                "title": "Smoked Paprika",
+                "url": "music/jazz.mp3"
+            }]
+
+    }, 
+    {
+        "id": 139, 
+        "recipe_name": "Banana Recovery Pudding", 
+        "recipe_description": "<p>\"Herbisport Recovery Puddings are easy to make and quite delightful. Well done!\" - Nona M.</p>", 
+        "recipe_servings": "1.00", 
+        "recipe_slug": "banana-recovery-pudding", 
+        "recipe_instructions": "<p>Combine all ingredients in a blender or food processor, whizzing until smooth. Serve</p>", 
+        "ingredients": [{
+                "title": "Pudding",
+                "url": "music/blue.mp3"
+            },
+            {
+                "title": "Banana",
+                "url": "music/jazz.mp3"
+            }]
+
+    }
+
+]);
         // Needed for static-served app
         window.App.home();
       });

File js/recipes.js

         window.PlaylistView = Backbone.View.extend({
             tag: 'section',
             className: 'playlist',
-            template: _.template($("#playlist-template").html()),
+            template: _.template($("#recipelist-template").html()),
 
             events: {
                 'click .play': 'play',
             }
         });
 
-        window.BackboneTunes = Backbone.Router.extend({
+        window.BackboneRecipes = Backbone.Router.extend({
             routes: {
                 '': 'home',
                 'blank': 'blank'
         });
 
         // Kick off the application
-        window.App = new BackboneTunes();
+        window.App = new BackboneRecipes();
         Backbone.history.start();
     });