Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename globel to env

  • Loading branch information...
commit 5d775fadf91379f12e93c1225a524ead307684dc 1 parent 7fd1416
@hiddenmemory authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  Tests/Test03.html
  2. +2 −2 Tipi/TPTemplateParser.m
View
2  Tests/Test03.html
@@ -3,7 +3,7 @@
{{ValueB}}
{{/def}}
-{{global ValueB "This is ValueB"}}
+{{env ValueB "This is ValueB"}}
{{#def B}}
{{ValueB}}
View
4 Tipi/TPTemplateParser.m
@@ -94,10 +94,10 @@ - (NSString*)expansionUsingEnvironment:(NSDictionary*)values {
return [node.values objectAtIndex:1];
} copy] forKey:[[node.values objectAtIndex:0] lowercaseString]];
- NSLog(@"Globals: %@", environment);
+ NSLog(@"Environment: %@", environment);
return @"";
- } copy] forKey:@"global"];
+ } copy] forKey:@"env"];
[environment setObject:[^NSString*( TPTemplateNode *node, NSMutableDictionary *environment, NSArray *parameters ) {
NSMutableString *expansion = [NSMutableString string];
Please sign in to comment.
Something went wrong with that request. Please try again.