aboutsummaryrefslogtreecommitdiffstats
path: root/Source/MGTemplateStandardMarkers.h
diff options
context:
space:
mode:
authorbamse16 <marius@marius.me.uk>2009-04-11 09:14:42 +0000
committerbamse16 <marius@marius.me.uk>2009-04-11 09:14:42 +0000
commit1824ae6360c9ce1897e75404163d39df08ee5fbf (patch)
tree0eca1f6f4cb42e08f25e44a4683aecfb5881aac2 /Source/MGTemplateStandardMarkers.h
parent41f8cde09ff77996339cabc71517496976beee2e (diff)
downloadsequelpro-1824ae6360c9ce1897e75404163d39df08ee5fbf.tar.gz
sequelpro-1824ae6360c9ce1897e75404163d39df08ee5fbf.tar.bz2
sequelpro-1824ae6360c9ce1897e75404163d39df08ee5fbf.zip
Added printing support via WebKit WebView
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