// // RegexKitTemplateMatcher.h // // Created by Matt Gemmell on 12/05/2008. // Copyright 2008 Instinctive Code. All rights reserved. // #import "MGTemplateEngine.h" #import /* This is an example Matcher for MGTemplateEngine, implemented using RegexKit. To use this matcher, you'll need to install RegexKit, link your target to it, and ensure it's copied into your built application. The RegexKit documentations explains how to do all this. Get RegexKit here: http://regexkit.sourceforge.net/ Other matchers can easily be implemented using the MGTemplateEngineMatcher protocol, if you prefer to use another regex framework, or use another matching method entirely. */ @interface RegexKitTemplateMatcher : NSObject { MGTemplateEngine *engine; NSString *markerStart; NSString *markerEnd; NSString *exprStart; NSString *exprEnd; NSString *filterDelimiter; NSString *templateString; RKRegex *regex; } @property(assign) MGTemplateEngine *engine; // weak ref @property(retain) NSString *markerStart; @property(retain) NSString *markerEnd; @property(retain) NSString *exprStart; @property(retain) NSString *exprEnd; @property(retain) NSString *filterDelimiter; @property(retain) NSString *templateString; @property(retain) RKRegex *regex; + (RegexKitTemplateMatcher *)matcherWithTemplateEngine:(MGTemplateEngine *)theEngine; - (NSArray *)argumentsFromString:(NSString *)argString; @end