Package Spotlight: Handlebars

Package Spotlight: Handlebars

Handlebars, a derivative of Mustache, is a JavaScript templating syntax that allows JSON to be bound to a view. Handlebars is logicless by default but also offers support for helpers and methods to add functionality into the views.

We at TRYTN use Handlebars for our front-end templating system. We chose this due to it’s common usage in the front-end development world as well as it’s speed and performance. There are two primary types of JavaScript templating engines: pre-compiled and run time. In a run time template the template is compiled at the time of the request. While this makes the overall JavaScript file smaller the perceived load time is worse because the templates are compiled for use only when they are needed. The popular JavaScript framework Angular is known for this type of template system.

Handlebars, on the other hand, is pre-compiled. This means that during the build process these templates are compiled and compressed into the JavaScript files they are being used in. While the overall file size is bigger the perceived performance is much better because they are already ready and available when the user makes a request. We aren’t as concerned about file size because of technology and caching we have in place to support this.

Package Name: Handlebars
Website: http://handlebarsjs.com/

customer entering credit card information into computer while holding a credit card
Feature Announcements
TRYTN

Custom Invoice Emails

We recently enhanced our invoicing capabilities in a big way. Each tour operator has specific business needs and so a one-size-fits-all invoice email just didn’t

Read More »
someone ideating on a white board with comps
Release Notes
TRYTN

July 2021 Release Notes

We’ve spent all of July trying to squash as many bugs as possible while also adding simple enhancements to make the system easier to use.

Read More »

Request a Demonstration