Posts

Showing posts from June, 2014

Call Handle Bar Helper Function From Another Helper Function

Hi all, This is my new post after long time :P                                I am Learning Handlebar now :) I am not going to explain you the basics of handlebar and make my post as bored one .Instead let me explain the feature which most of us don't know. If you are new to handlebar here is the link you can refer it and learn basics                                 http://handlebarsjs.com/ From the above link you will get to know there is  a feature called helper function in handlebars . Here i am going to explain how to call a helper function from another helper function. some times  you may get into a situation where you want to perform some operation as the result of another in that situation you can use this logic.  Template      This is my template , {{#checkAndFormat "India"}}{{/checkAndFormat}}              Helper 1:                           Handlebars.registerHelper('checkAndFormat', function (value, options) {     var s