Skip to content
Newer
Older
100644 31 lines (22 sloc) 751 Bytes
2cfbc21 @hiddenmemory Expansions working on templates
authored Apr 5, 2012
1 //
2 // TPTemplateParser.h
3 // Tipi
4 //
5 // Created by Chris Ross on 05/04/2012.
6 // Copyright (c) 2012 hiddenMemory Ltd. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10
82c4003 @hiddenmemory Import behavior
authored Apr 9, 2012
11 @class TPTemplateNode;
12
2cfbc21 @hiddenmemory Expansions working on templates
authored Apr 5, 2012
13 @interface TPTemplateParser : NSObject
82c4003 @hiddenmemory Import behavior
authored Apr 9, 2012
14 @property (readonly) TPTemplateNode *root;
e904945 @hiddenmemory Make the sourcePath a readonly attribute. Allowed subclasses of TPTem…
authored May 6, 2012
15 @property (readonly) NSString *sourcePath;
82c4003 @hiddenmemory Import behavior
authored Apr 9, 2012
16
7a91292 @hiddenmemory Make it possible to tweak the tag values from outside the parser object
authored May 6, 2012
17 @property (strong) NSString *tagStart;
18 @property (strong) NSString *tagBlockOpen;
19 @property (strong) NSString *tagBlockClose;
20 @property (strong) NSString *tagEnd;
21
2cfbc21 @hiddenmemory Expansions working on templates
authored Apr 5, 2012
22 + (TPTemplateParser*)parserForFile:(NSString*)path;
3c164ec @hiddenmemory Implement {{import}} within the parser
authored Apr 9, 2012
23
fd2ee84 @hiddenmemory Added a README, cleaned up some API to make more sense
authored Apr 9, 2012
24 - (NSString*)expansion;
3c164ec @hiddenmemory Implement {{import}} within the parser
authored Apr 9, 2012
25 - (NSString*)expansionUsingEnvironment:(NSDictionary*)values;
26 - (NSString*)expansionUsingImportEnvironment:(NSDictionary*)values;
27
e904945 @hiddenmemory Make the sourcePath a readonly attribute. Allowed subclasses of TPTem…
authored May 6, 2012
28 - (NSString*)locateImport:(NSString*)name;
29
2cfbc21 @hiddenmemory Expansions working on templates
authored Apr 5, 2012
30 @end
Something went wrong with that request. Please try again.