Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Experimental implementation of issue #37.

  • Loading branch information...
commit dfa169e6659ee1936a91c19bd3f50823e06e79a6 1 parent dce6738
@samdeane authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/classes/GRMustacheIdentifierExpression.m
View
6 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.