…One of the things I really like about Handlebars is a…feature called Helpers, and I mentioned this a little bit earlier.…Helpers are a way in Handlebars of encapsulating functionality so that you…can use them in your templates and Helpers can be pretty advanced.…It's a great way of making sure that logic doesn't seep it's way…too much into your templates and Handlebars…has some really good ones built in.…But you can also define your own, and that's…what we're going to look at in this movie.…
So, in the Chapter four part of your snippets file for Handlebars, scroll down…to the helpers section and let's open up the handlebarshelp_start.…Now, much of this probably looks familiar by now, right?…We have the getting of the HTML for the template.…We compile the template.…We render the template with data.…And then we put the results back into the document.…So, let's go to the snippets file and let's copy this template right here.…So, we'll copy that and paste it into the doc.…
Alright, so again, much of this probably looks familiar.…
- What is templating?
- Defining templates in jQuery Template
- Using simple Mustache templates with sections and conditions
- Adding conditionals and loops to Handlebars templates
- Working with Dust templates
Skill Level Intermediate
What is templating?5m 12s
2. jQuery Template
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.