Created
April 5, 2012 18:22
-
-
Save bmelton/2313013 to your computer and use it in GitHub Desktop.
Ember - handlebars intro
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
<!doctype html> | |
<head> | |
<title>Ember test</title> | |
<script type="text/javascript" src="../lib/jquery.min.js"></script> | |
<script type="text/javascript" src="../lib/ember.min.js"></script> | |
</head> | |
<body> | |
<script type="text/x-handlebars"> | |
<img src="{{ Example.logo }}"><br /> | |
<h1>{{ Example.name }}</h1> | |
</script> | |
<script> | |
Example = Ember.Application.create({ | |
name: "Example Application", | |
logo: "http://sympodial.com/images/logo.png" | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As snipped from http://sympodial.com/blog/extremely-gentle-introduction-emberjs-part-1/