Tag Archives: Handlebarsjs

Using Handlebarsjs in SharePoint 2013 with REST API- Part1

When you build the application as client side code using JavaScript, you may come up with the situation to do update the values on the HTML to display. We use JQuery or vanilla JavaScript to do so. To do this easy we can use the different Javascript templating. Some of them are Handlebarsjs Mustache Underscore […]


SharePoint 2013: Using Handlebarjs in SharePoint- Part 2

In the part1 we have seen how to create a Handlebarjs template and merge our REST API output with that template. In that output the date time values of Created and Modified is not well formatted. Below is the un-formatted output. In this we will use Moment.js to do formatting. Momemt.js js help us to […]


SharePoint 2013: Using HandleBars.js in SharePoint –Part 3

In Part1, we have seen how to create a Handlebars template and use it SharePoint 2013 REST API output. In Part2, we have seen how to format a SharePoint date time value using Momemt.js In this article let us see if we have a Lookup Field column in the list. I have created a new […]


Moment Js: Change Locale in Date Time from SharePoint 2013 REST API

In the previous article I have explained about using Handlebars template and SharePoint data. For formatting the Date Time I have used Moment.js file. It has lot of helper functions and formatting options to work with Date Time. When displaying the data time, Moment.js provides an option to change the locale. By default it will […]



via Handlebars – Getting Started – Ivan Brazzò.

Handlebars provides the power necessary to let you build semantic templates effectively with no frustration.
Handlebars is largely compatible with Mustache templates. In most cases it is possible to swap out Mustache with Handlebars and continue using your current templates. Complete details can be found here.

Download: 3.0.1

The anatomy of a simple templating engine

Click to Read

If you’ve never used JavaScript templating before, I’d first check out this blog’s post on templating for a high-level overview and use-cases for using them. If you have used them or at least had exposure to them, you might have used one or more of these:

As a note, this post does not demonstrate the complexities and thought that goes into making a production-ready library like the three mentioned above, it simply serves as a rudimentary breakdown of the anatomy of what a templating engine does and how it does it.