Wednesday June 15, 2011

Mustache HTML Templating in Objective-C

A while back, I needed a clean way to generate interpolated HTML with Objective-C and started writing my own implementation of Mustache a very simple template language. Now that I’ve found Gwendal Roué’s implementation I’ve given up and forked his. He implements the full spec (with variables, partials, inverted sections, etc) and it works with KVC so any object with the right keys will have their values interpolated into the template.