Created
March 27, 2013 21:01
-
-
Save sgharms/5257962 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/public/javascripts/custom/application.js b/public/javascripts/custom/application.js | |
index 6d55e23..51fd890 100644 | |
--- a/public/javascripts/custom/application.js | |
+++ b/public/javascripts/custom/application.js | |
@@ -4,3 +4,8 @@ window.App = Ember.Application.create({ | |
} | |
}); | |
+App.FunView = Ember.View.extend({ | |
+ templateName: 'fun', | |
+ adjective: 'fun' | |
+}); | |
+ | |
diff --git a/public/views/templates/application.handlebars b/public/views/templates/application.handlebars | |
index 68f33da..a67ecdf 100644 | |
--- a/public/views/templates/application.handlebars | |
+++ b/public/views/templates/application.handlebars | |
@@ -16,8 +16,16 @@ | |
<h2>Am I really running the latest Ember ecosystem?</h2> | |
<p>Check out the browser debug console. Ember spits those data out when it starts up.</p> | |
+ | |
+ | |
+ {{view App.FunView}} | |
</script> | |
<script type="text/x-handlebars" data-template-name="non-existant-view"> | |
<p>Hi i'm a template that won't show up — unless you create an Ember View that uses me!</p> | |
</script> | |
+ | |
+<script type="text/x-handlebars" data-template-name="fun"> | |
+ <p>This is really a {{view.adjective}} view</p> | |
+</script> | |
+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment