Use a template to repeat HTML for each element of an array

Use a Handlebars template to make a jQuery Mobile listview


In this screencast well see how to make a handlebars template that can be run on an array of objects. The template will repeat for each element of the array. Learn how to:

  1. use the handlebars directives {{#.}} and {{/.}}
  2. use the current array index in the template with @index
  3. attach to the jQuery Mobile beforecreate event to fill a screen at app launch time


Latest Blog Posts

The Swift Programming Language Companion: Section 1

In my last article I explained that aspiring iOS App Developers should start by learning swift and not jump in to app tutorials.

To help, I’ve been working on a series of articles that go through the book chapter by chapter, and offer some exercises that you should try after reading the corresponding chapter

Read more ...

Want to make an iOS App? Start with Swift

The biggest obstacle I see in new app developers is that they struggle with the basics.

Before you learn about UIViewController, UITableViewDataSource, and NSManagedObject, you need to fully understand let. var, enum, struct, if, for in, case let, and guard let.

Read more ...