diff options
author | bamse16 <marius@marius.me.uk> | 2009-04-11 09:14:42 +0000 |
---|---|---|
committer | bamse16 <marius@marius.me.uk> | 2009-04-11 09:14:42 +0000 |
commit | 1824ae6360c9ce1897e75404163d39df08ee5fbf (patch) | |
tree | 0eca1f6f4cb42e08f25e44a4683aecfb5881aac2 /Source/MGTemplateStandardMarkers.h | |
parent | 41f8cde09ff77996339cabc71517496976beee2e (diff) | |
download | sequelpro-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.h | 24 |
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 |