Commit 13e00a6c authored by josé bollo's avatar josé bollo

Allows names with special character at the begin

This commit implements the convention that

  {{\name}} is equivalent to {{name}}

even when names begins with one of the special characters
of mustache: #^/{&!>

Change-Id: I4c93e5b8af301f77bb88cdb0a51474bd4af24b0d
parent 80e6bee3
......@@ -104,6 +104,7 @@ static int process(const char *template, struct mustach_itf *itf, void *closure,
case '/':
case '&':
case '>':
case '\\':
beg++; len--;
default:
while (len && isspace(beg[0])) { beg++; len--; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment