aboutsummaryrefslogtreecommitdiffstats
path: root/Source/MGTemplateStandardMarkers.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/MGTemplateStandardMarkers.h')
-rw-r--r--Source/MGTemplateStandardMarkers.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/MGTemplateStandardMarkers.h b/Source/MGTemplateStandardMarkers.h
new file mode 100644
index 00000000..2830197a
--- /dev/null
+++ b/Source/MGTemplateStandardMarkers.h
@@ -0,0 +1,24 @@
+//
+// MGTemplateStandardMarkers.h
+//
+// Created by Matt Gemmell on 13/05/2008.
+// Copyright 2008 Instinctive Code. All rights reserved.
+//
+
+#import "MGTemplateEngine.h"
+#import "MGTemplateMarker.h"
+
+@interface MGTemplateStandardMarkers : NSObject <MGTemplateMarker> {
+ MGTemplateEngine *engine; // weak ref
+ NSMutableArray *forStack;
+ NSMutableArray *sectionStack;
+ NSMutableArray *ifStack;
+ NSMutableArray *commentStack;
+ NSMutableDictionary *cycles;
+}
+
+- (BOOL)currentBlock:(NSDictionary *)blockInfo matchesTopOfStack:(NSMutableArray *)stack;
+- (BOOL)argIsNumeric:(NSString *)arg intValue:(int *)val checkVariables:(BOOL)checkVars;
+- (BOOL)argIsTrue:(NSString *)arg;
+
+@end