From f34539850a989a9438789198bf7b2b3a6777c905 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 13 Apr 2011 15:00:57 -0700 Subject: [PATCH] Added blurb on standards mode. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 2edb2ad..40c27fe 100644 --- a/README.md +++ b/README.md @@ -281,6 +281,18 @@ Note that if a variable _is_ defined in an inner context, it shadows the same name in the outer context. There is presently no way to access the variable from the outer context. +Standards Mode +-------------- + +The more intrusive of these extensions, specifically the searching of parent +contexts and the use of compound varables, can be disabled when creating a +compiler, like so: + + Map ctx = new HashMap(); + ctx.put("foo.bar", "baz"); + Mustache.compiler().standardsMode(true).compile("{{foo.bar}}").execute(ctx); + // result: baz + Limitations ===========