Permalink
Browse files

Experimental implementation of issue #37.

  • Loading branch information...
1 parent dce6738 commit dfa169e6659ee1936a91c19bd3f50823e06e79a6 @samdeane committed Jun 29, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/classes/GRMustacheIdentifierExpression.m
@@ -66,7 +66,11 @@ - (BOOL)isEqual:(id)expression
- (BOOL)hasValue:(id *)value withContext:(GRMustacheContext *)context protected:(BOOL *)protected error:(NSError **)error
{
if (value != NULL) {
- *value = [context valueForMustacheKey:_identifier protected:protected];
+ if ([_identifier characterAtIndex:0] == '"') {
+ *value = _identifier;
+ } else {
+ *value = [context valueForMustacheKey:_identifier protected:protected];
+ }
}
return YES;
}

0 comments on commit dfa169e

Please sign in to comment.