Permalink
Browse files

Merge pull request #231 from timshadel/brew-templates

Allow the selection of a template path at compile time.
  • Loading branch information...
2 parents 78d7011 + 70d7de5 commit 9b1e361ebcf5805c2ca0bbf0fee3e0e93ab533b2 @tomaz committed Jul 13, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 Application/GBAppledocApplication.m
@@ -496,6 +496,16 @@ - (void)injectGlobalSettingsFromArguments:(NSArray *)arguments {
self.templatesFound = YES;
return;
}
+
+ #ifdef COMPILE_TIME_DEFAULT_TEMPLATE_PATH
+ path = COMPILE_TIME_DEFAULT_TEMPLATE_PATH;
+ if ([self validateTemplatesPath:path error:nil]) {
+ [self overrideSettingsWithGlobalSettingsFromPath:path];
+ self.settings.templatesPath = path;
+ self.templatesFound = YES;
+ return;
+ }
+ #endif
}
}

0 comments on commit 9b1e361

Please sign in to comment.