Tag Archives: Handlebars.js

Using conditionals and helpers with Handlebars.js

Last time, we looked at how we can use a JavaScript template, in our case Handlebars.js, to swap out content. But what if we have some content that isn’t going to appear in each of our content blocks? Continuing with … Continue reading

Posted in javascript | Tagged , , | Leave a comment

Use JavaScript templates to swap content

In my previous example of using a JavaScript template, I showed you how to use it to set up some static content. While that’s a good use for JS templates, you can use it to do a lot more. One … Continue reading

Posted in javascript | Tagged , , | 1 Comment

JavaScript templating will make your life a lot easier

I’ll admit it, when I first saw a tutorial explaining how to use JavaScript templates, I didn’t really see the point to it. I thought, if you really wanted to do something like that, you’d just use a server side … Continue reading

Posted in javascript | Tagged , , | 2 Comments