Instant Handlebars.js [Instant]

This title is available as an eBook only
Instant Handlebars.js [Instant]
eBook: $12.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print & eBook also available on:
Learn in an Instant - Short, Fast, Focused
Table of Contents
Sample Chapters
  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Create and display templates on your pages
  • Extend Handlebars with custom helpers
  • Organize your code with partials
  • Optimize your development environment

Book Details

Language : English
eBook : 62 pages
Release Date : September 2013
ISBN : 1783282657
ISBN 13 : 9781783282654
Author(s) : Gabriel Manricks
Topics and Technologies : All Books, Instant, Web Development, Open Source

Table of Contents

Instant Handlebars.js
  • Instant Handlebars.js
    • So, what is Handlebars?
      • The syntax
    • Installation
      • Downloading the Handlebars library
      • Precompiling templates
    • Quick start – creating your first template
      • Preparing the project
      • Block helpers
    • Top 6 features you need to know about
      • Expressions
      • Helpers
      • Partials
      • Structuring a Handlebars app
      • Precompilation
      • Logging and comments
    • People and places you should get to know
      • Official sites
      • Community
      • Frameworks
      • Twitter
      • About Packt Publishing
      • Writing for Packt

Gabriel Manricks

Gabriel Manricks is a full stack software & web developer focusing on PHP and both frontend and server-side JavaScript frameworks. Gabriel works as a staff writer for NetTuts+, where he enjoys learning as well as teaching others, and he also freelances in web consulting, development, and writing.
Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sorry, there are currently no downloads available for this title.

Frequently bought together

Instant Handlebars.js [Instant] +    Instant Apache Camel Messaging System [Instant] =
50% Off
the second eBook
Price for both: $19.25

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Create and compile templates with data
  • Learn how to structure reusable templates
  • Extend Handlebars with helpers
  • Manipulate a template’s context
  • Reuse templates with partials
  • Organize your projects with Require.js
  • Pre-compile templates for production
  • Add debug points to keep your templates maintainable

In Detail

Handlebars is one of the leading JavaScript templating engines and is quickly gaining widespread adoption by developers, as well as with frameworks like Ember.js and Meteor.

"Instant Handlebars.js" is a complete guide to the Handlebars library filled with internal concepts and practical examples that will help illustrate what’s going on and take you from a complete beginner to a Handlebars expert.

"Instant Handlebars.js" begins with the very basics, requiring no previous knowledge about templating engines. Throughout the course of this book, you get a thorough tour of all the features available in Handlebars.js and you will learn how to organize your websites for both development and production.

In this book, we will cover how to create templates with both placeholders and helpers. We will then go into organizing your projects for rapid -development using Require.js and how to optimize and compile your projects for production. To finish off, you will learn how to annotate your code and leave debug points so that you can easily maintain and troubleshoot your code in the future.

Handlebars is a small library;, it is meant to fill a specific need and it does this well. "Instant Handlebars.js" takes a very methodical approach to cover every aspect of this amazing library with practical examples provided every step of the way.


Get to grips with a new technology, understand what it is and what it can do for you, and then get to work with the most important features and tasks. This book is a step-by-step guide to installing and creating your own JavaScript templates using Handlebars.js.

Who this book is for

This book is aimed at people who have a general knowledge of JavaScript and HTML. No knowledge of templating engines is required.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software