-
Notifications
You must be signed in to change notification settings - Fork 6
Using Microtext.js with Handlebars
rodrigoalvesvieira edited this page Oct 4, 2012
·
5 revisions
This guide will help you get started using Microtext.js helper functions within your Handlebars templates
Include Microtext.js in your HTML document right after loading jQuery, Ember.js and Handlebars.js:
<script src="/microtext.handlebars.js" type="text/javascript"></script>
Now you can use Microtext.js helpers regularly inside your Handlebars.js templates:
<script type="text/x-handlebars" data-template-name="book-listings">
Hello, {{abbrevName MyApp.currentUser.name}}.
{{simpleFormat "These are the books currently in your bookshelf:"}}
</script>