Skip to content
Objective-C Microtemplate
Objective-C
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Microtemplate.h
Microtemplate.m
README

README

Objective-C Microtemplate
-------------------------
Copyright(C) 2009 Adam Ballai <aballai@gmail.com>

Example Usage:
Initializers
	NSString *defaultTemplatePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"material_detail.html"];
	Microtemplate *mtpl = [Microtemplate from_file:defaultTemplatePath];
	Microtemplate *mtpl = [[Microtemplate alloc] initWithString:@"<!--- BEGIN: test --->$test<!--- END: test --->"];

Rendering:
	NSDictionary *env = [NSDictionary dictionaryWithObject:@"test" forKey:@"test"];
	NSString *test = [mtpl render:@"test" env:env];
Something went wrong with that request. Please try again.