Permalink
Browse files

Update GRMustache to v7.0.3

  • Loading branch information...
1 parent 2893533 commit baa210159e00f7eb6dfaa77d6aafa77e9169c926 Stephen Tramer committed Jul 21, 2014
Showing with 2,976 additions and 3,482 deletions.
  1. +1 −0 .gitignore
  2. +0 −122 Common/ThirdParty/GRMustache/GRBoolean.m
  3. +0 −75 Common/ThirdParty/GRMustache/GRMustache.h
  4. +0 −55 Common/ThirdParty/GRMustache/GRMustache.m
  5. +0 −47 Common/ThirdParty/GRMustache/GRMustacheBundleTemplateLoader.m
  6. +0 −31 Common/ThirdParty/GRMustache/GRMustacheBundleTemplateLoader_private.h
  7. +0 −170 Common/ThirdParty/GRMustache/GRMustacheCompiler.m
  8. +0 −41 Common/ThirdParty/GRMustache/GRMustacheCompiler_private.h
  9. +0 −226 Common/ThirdParty/GRMustache/GRMustacheContext.m
  10. +0 −32 Common/ThirdParty/GRMustache/GRMustacheContext_private.h
  11. +0 −67 Common/ThirdParty/GRMustache/GRMustacheDirectoryTemplateLoader.m
  12. +0 −32 Common/ThirdParty/GRMustache/GRMustacheDirectoryTemplateLoader_private.h
  13. +0 −31 Common/ThirdParty/GRMustache/GRMustacheElement_private.h
  14. +0 −27 Common/ThirdParty/GRMustache/GRMustacheError.m
  15. +0 −30 Common/ThirdParty/GRMustache/GRMustacheLambda.h
  16. +0 −67 Common/ThirdParty/GRMustache/GRMustacheLambda.m
  17. +0 −31 Common/ThirdParty/GRMustache/GRMustacheLambda_private.h
  18. +0 −140 Common/ThirdParty/GRMustache/GRMustacheSectionElement.m
  19. +0 −35 Common/ThirdParty/GRMustache/GRMustacheSectionElement_private.h
  20. +0 −198 Common/ThirdParty/GRMustache/GRMustacheTemplate.h
  21. +0 −178 Common/ThirdParty/GRMustache/GRMustacheTemplate.m
  22. +0 −147 Common/ThirdParty/GRMustache/GRMustacheTemplateLoader.h
  23. +0 −168 Common/ThirdParty/GRMustache/GRMustacheTemplateLoader.m
  24. +0 −30 Common/ThirdParty/GRMustache/GRMustacheTemplateLoader_private.h
  25. +0 −119 Common/ThirdParty/GRMustache/GRMustacheTemplateLoader_protected.h
  26. +0 −32 Common/ThirdParty/GRMustache/GRMustacheTemplate_private.h
  27. +0 −56 Common/ThirdParty/GRMustache/GRMustacheTextElement.m
  28. +0 −57 Common/ThirdParty/GRMustache/GRMustacheToken.m
  29. +0 −63 Common/ThirdParty/GRMustache/GRMustacheToken_private.h
  30. +0 −333 Common/ThirdParty/GRMustache/GRMustacheTokenizer.m
  31. +0 −33 Common/ThirdParty/GRMustache/GRMustacheTokenizer_private.h
  32. +0 −35 Common/ThirdParty/GRMustache/GRMustacheURLTemplateLoader.m
  33. +0 −27 Common/ThirdParty/GRMustache/GRMustacheURLTemplateLoader_private.h
  34. +0 −80 Common/ThirdParty/GRMustache/GRMustacheVariableElement.m
  35. +0 −32 Common/ThirdParty/GRMustache/GRMustacheVariableElement_private.h
  36. +0 −76 Common/ThirdParty/GRMustache/GRMustacheVersion.h
  37. +0 −34 Common/ThirdParty/GRMustache/GRMustacheVersion.m
  38. +0 −37 Common/ThirdParty/GRMustache/GRMustache_private.h
  39. +0 −38 Generating/GBDictionaryTemplateLoader.h
  40. +0 −41 Generating/GBDictionaryTemplateLoader.m
  41. +9 −4 Generating/GBTemplateHandler.m
  42. +174 −0 Libraries/GRMustache/GRMustache.h
  43. +93 −0 Libraries/GRMustache/GRMustacheAvailabilityMacros.h
  44. +295 −0 Libraries/GRMustache/GRMustacheConfiguration.h
  45. +32 −42 Common/ThirdParty/GRMustache/GRMustacheError.h → Libraries/GRMustache/GRMustacheContentType.h
  46. +482 −0 Libraries/GRMustache/GRMustacheContext.h
  47. +42 −48 Common/ThirdParty/GRMustache/GRBoolean.h → Libraries/GRMustache/GRMustacheError.h
  48. +125 −0 Libraries/GRMustache/GRMustacheFilter.h
  49. +107 −0 Libraries/GRMustache/GRMustacheLocalizer.h
  50. +129 −0 Libraries/GRMustache/GRMustacheRendering.h
  51. +32 −12 ...Party/GRMustache/GRMustacheTextElement_private.h → Libraries/GRMustache/GRMustacheSafeKeyAccess.h
  52. +153 −0 Libraries/GRMustache/GRMustacheTag.h
  53. +84 −0 Libraries/GRMustache/GRMustacheTagDelegate.h
  54. +382 −0 Libraries/GRMustache/GRMustacheTemplate.h
  55. +577 −0 Libraries/GRMustache/GRMustacheTemplateRepository.h
  56. +19 −9 Common/ThirdParty/GRMustache/GRMustacheElement.m → Libraries/GRMustache/GRMustacheVersion.h
  57. +70 −0 Libraries/GRMustache/NSFormatter+GRMustache.h
  58. +12 −12 .../ThirdParty/GRMustache/GRMustacheElement.h → Libraries/GRMustache/NSValueTransformer+GRMustache.h
  59. BIN Libraries/libGRMustache7-iOS.a
  60. +6 −6 Templates/docset/Contents/Resources/nodes-template.xml
  61. +10 −10 Templates/html/document-template.html
  62. +12 −12 Templates/html/hierarchy-template.html
  63. +13 −13 Templates/html/index-template.html
  64. +75 −75 Templates/html/object-template.html
  65. +42 −166 appledoc.xcodeproj/project.pbxproj
View
@@ -2,3 +2,4 @@
build
xcuserdata
project.xcworkspace
+xcshareddata
@@ -1,122 +0,0 @@
-// The MIT License
-//
-// Copyright (c) 2010 Gwendal Roué
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "GRBoolean.h"
-
-
-static GRYes *yes = nil;
-
-@implementation GRYes
-
-+ (GRYes *)yes {
- if (yes == nil) {
- yes = [[super allocWithZone:NULL] init];
- }
- return yes;
-}
-
-+ (id)allocWithZone:(NSZone *)zone {
- return [[self yes] retain];
-}
-
-- (id)copyWithZone:(NSZone *)zone {
- return self;
-}
-
-- (id)retain {
- return self;
-}
-
-- (NSUInteger)retainCount {
- return NSUIntegerMax; //denotes an object that cannot be released
-}
-
-- (oneway void)release {
- //do nothing
-}
-
-- (id)autorelease {
- return self;
-}
-
-- (id)valueForKey:(NSString *)key {
- return nil;
-}
-
-- (BOOL)boolValue {
- return YES;
-}
-
-- (NSString *)description {
- return @"(yes)";
-}
-
-@end
-
-static GRNo *no = nil;
-
-@implementation GRNo
-
-+ (GRNo *)no {
- if (no == nil) {
- no = [[super allocWithZone:NULL] init];
- }
- return no;
-}
-
-+ (id)allocWithZone:(NSZone *)zone {
- return [[self no] retain];
-}
-
-- (id)copyWithZone:(NSZone *)zone {
- return self;
-}
-
-- (id)retain {
- return self;
-}
-
-- (NSUInteger)retainCount {
- return NSUIntegerMax; //denotes an object that cannot be released
-}
-
-- (oneway void)release {
- //do nothing
-}
-
-- (id)autorelease {
- return self;
-}
-
-- (id)valueForKey:(NSString *)key {
- return nil;
-}
-
-- (BOOL)boolValue {
- return NO;
-}
-
-- (NSString *)description {
- return @"(no)";
-}
-
-@end
@@ -1,75 +0,0 @@
-// The MIT License
-//
-// Copyright (c) 2010 Gwendal Roué
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <Foundation/Foundation.h>
-
-/**
- The GRMustache class provides with global-level information and configuration
- of the GRMustache library.
- @since v1.0.0
- */
-@interface GRMustache: NSObject
-
-//////////////////////////////////////////////////////////////////////////////////////////
-/// @name Handling of boolean properties
-//////////////////////////////////////////////////////////////////////////////////////////
-
-/**
- A Boolean value that determines whether GRMustache renders templates in strict
- boolean mode.
-
- @returns YES if GRMustache renders templates in strict boolean mode,
- NO otherwise. The default value is NO.
-
- In strict boolean mode, properties of context objects that are declared as BOOL
- are interpreted as numbers, and can not be used for controlling Mustache
- boolean sections.
-
- In non-strict boolean mode, all properties declared as signed char (including
- those declared as BOOL), are interpreted as booleans, and can be used for
- controlling Mustache boolean sections.
-
- @see GRMustache#setStrictBooleanMode:
- @see GRYes
- @see GRNo
- @since v1.0.0
- */
-+ (BOOL)strictBooleanMode;
-
-/**
- Sets the strict boolean mode of GMustache.
-
- @param aBool YES if GRMustache should render templates in strict boolean mode,
- NO otherwise.
-
- @see GRMustache#strictBooleanMode
- @since v1.0.0
- */
-+ (void)setStrictBooleanMode:(BOOL)aBool;
-@end
-
-#import "GRMustacheVersion.h"
-#import "GRBoolean.h"
-#import "GRMustacheError.h"
-#import "GRMustacheLambda.h"
-#import "GRMustacheTemplateLoader.h"
-#import "GRMustacheTemplate.h"
@@ -1,55 +0,0 @@
-// The MIT License
-//
-// Copyright (c) 2010 Gwendal Roué
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "GRMustache_private.h"
-#import "GRMustacheLambda_private.h"
-
-
-static BOOL strictBooleanMode = NO;
-
-@implementation GRMustache
-
-+ (BOOL)strictBooleanMode {
- return strictBooleanMode;
-}
-
-+ (void)setStrictBooleanMode:(BOOL)aBool {
- strictBooleanMode = aBool;
-}
-
-+ (GRMustacheObjectKind)objectKind:(id)object {
- if (object == nil || object == [NSNull null] || object == [GRNo no] || ([object isKindOfClass:[NSString class]] && ((NSString*)object).length == 0)) {
- return GRMustacheObjectKindFalseValue;
- }
- if ([object isKindOfClass:[NSDictionary class]]) {
- return GRMustacheObjectKindTrueValue;
- }
- if ([object conformsToProtocol:@protocol(NSFastEnumeration)]) {
- return GRMustacheObjectKindEnumerable;
- }
- if ([object isKindOfClass:[GRMustacheLambdaBlockWrapper class]]) {
- return GRMustacheObjectKindLambda;
- }
- return GRMustacheObjectKindTrueValue;
-}
-
-@end
@@ -1,47 +0,0 @@
-// The MIT License
-//
-// Copyright (c) 2010 Gwendal Roué
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "GRMustacheBundleTemplateLoader_private.h"
-
-
-@implementation GRMustacheBundleTemplateLoader
-
-- (id)initWithBundle:(NSBundle *)theBundle extension:(NSString *)ext encoding:(NSStringEncoding)encoding {
- if ((self = [self initWithExtension:ext encoding:encoding])) {
- if (theBundle == nil) {
- theBundle = [NSBundle mainBundle];
- }
- bundle = [theBundle retain];
- }
- return self;
-}
-
-- (id)templateIdForTemplateNamed:(NSString *)name relativeToTemplateId:(id)baseTemplateId {
- return [bundle URLForResource:name withExtension:self.extension];
-}
-
-- (void)dealloc {
- [bundle release];
- [super dealloc];
-}
-
-@end
@@ -1,31 +0,0 @@
-// The MIT License
-//
-// Copyright (c) 2010 Gwendal Roué
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import "GRMustacheURLTemplateLoader_private.h"
-
-
-@interface GRMustacheBundleTemplateLoader: GRMustacheURLTemplateLoader {
-@private
- NSBundle *bundle;
-}
-- (id)initWithBundle:(NSBundle *)bundle extension:(NSString *)ext encoding:(NSStringEncoding)encoding;
-@end
Oops, something went wrong.

0 comments on commit baa2101

Please sign in to comment.