views:

99

answers:

2

Is anyone aware of a category on NSString or NSMutableString that allows for templating? I'd like to create a template and use tags for variables, then "apply" a KVC-compliant object against the string to have the variables replaced.

Or another way of asking... How is templating currently done in the iPhone / Objective-C universe? Is there a class out there that already handles this?

+1  A: 

You might try MGTemplateEngine. The comments on the linked article suggest iPhone compatibility is now available.

Joshua Nozzi
A: 

MGTemplateEngine works on Mac OS X and on iPhone.

Johan Kool