Permalink
Browse files

Make it possible to tweak the tag values from outside the parser object

  • Loading branch information...
1 parent e904945 commit 7a912929b0d0c68e8fa02d228e961f4fc08c7451 @hiddenmemory committed May 6, 2012
Showing with 7 additions and 0 deletions.
  1. +5 −0 Tipi/TPTemplateParser.h
  2. +2 −0 Tipi/TPTemplateParser.m
View
@@ -14,6 +14,11 @@
@property (readonly) TPTemplateNode *root;
@property (readonly) NSString *sourcePath;
+@property (strong) NSString *tagStart;
+@property (strong) NSString *tagBlockOpen;
+@property (strong) NSString *tagBlockClose;
+@property (strong) NSString *tagEnd;
+
+ (TPTemplateParser*)parserForFile:(NSString*)path;
- (NSString*)expansion;
View
@@ -31,6 +31,8 @@ - (BOOL)parseTag:(NSMutableString*)content parent:(TPTemplateNode*)parent;
@implementation TPTemplateParser
@synthesize root, sourcePath;
+@synthesize tagStart, tagEnd, tagBlockOpen, tagBlockClose;
+
+ (TPTemplateParser*)parserForFile:(NSString*)path {
return [[[self class] alloc] initWithFileAtPath:path];
}

0 comments on commit 7a91292

Please sign in to comment.