itod/tdtemplateengine

BUG

Droppix opened this issue · 0 comments

Hi,

I have a problem with access to my variable (2016.s) :(below my code)
I think the key 2016 interpreted as a number and not a string.
`
NSString *input = @"{{2016.s}}";
id vars = @{@"2016": @{ @"s" : @123.45}};

NSError *err = nil;
BOOL success = [eng processTemplateString:input withVariables:vars toStream:stream error:&err];
Error Domain=PEGKitErrorDomain Code=1 "TDTemplateEngineErrorDomain" UserInfo={NSLocalizedDescription=TDTemplateEngineErrorDomain, range=NSRange: {9223372036854775807, 0}, lineNumber=0, NSLocalizedFailureReason=Error while compiling print node expression2016.s`
Expected : «EOF»
Line : 1
}

Have you a solution?

Thanks