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 […]

https://rmanimaran.wordpress.com/2014/12/08/using-handlebarsjs-in-sharepoint-2013-with-rest-api-part1/

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 […]

https://rmanimaran.wordpress.com/2014/12/09/sharepoint-2013-using-handlebarjs-in-sharepoint-part-2/

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 […]

https://rmanimaran.wordpress.com/2014/12/12/sharepoint-2013-using-handlebars-js-in-sharepoint-part-3/

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 […]

https://rmanimaran.wordpress.com/2015/04/23/moment-js-change-locale-in-date-time-from-sharepoint-2013-rest-api/

HANDLEBARSJS


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.