Last active
August 29, 2015 14:06
-
-
Save kristianmandrup/8ec0dc2b9419d9afcbb5 to your computer and use it in GitHub Desktop.
Experiments with Ember Ratchet components
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
// From http://goratchet.com/components/ | |
<script type="text/x-handlebars" id="components/ra-title"> | |
<h1 class="title">{{yield}}</h1> | |
</script> | |
<script type="text/x-handlebars" id="components/ra-btn"> | |
<button class="btn pull-{{pos}}"> | |
{{yield}} | |
</button> | |
</script> | |
<script type="text/x-handlebars" id="components/ra-hnav"> | |
<header class="bar bar-nav"> | |
{{yield}} | |
</header> | |
</script> | |
{{ra-hnav}} | |
{{ra-btn pos=left}} | |
Left | |
{{/ra-btn}} | |
{{ra-btn pos=left}} | |
Right | |
{{/ra-btn}} | |
{{ra-title}} | |
Title | |
{{/ra-btn}} | |
{{/ra-hnav}} | |
And so on... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment