Skip to content

Using Microtext.js with Handlebars

rodrigoalvesvieira edited this page Oct 4, 2012 · 5 revisions

Using Microtext.js with Handlebars

WIP

This guide will help you get started using Microtext.js helper functions within your Handlebars templates

Getting started

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>
Clone this wiki locally