O'Reilly logo

Instant typeahead.js by Toby Osbourn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying your dataset to the user (Should know)

By this point we have already covered examples that end up displaying data to the user, but there is far more we could be doing. In this chapter we will cover using a templating language named Mustache.

Getting ready

Mustache is a templating language that allows you to write clean templates without any logic tied up in creating them on the server side because Mustache handles it on the frontend.

For example, Mustache allows you to loop through elements or use conditional logic without writing any server-side code or any JavaScript to do it. It is useful because when dealing with data, you don't want to have to worry about how it will be presented, and when you are writing your templates to display ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required