From b3f5e1e960b567d6c69bdc02d3d99b01bfd1ae68 Mon Sep 17 00:00:00 2001 From: Sean Scanlon Date: Sun, 27 Mar 2011 16:18:17 -0700 Subject: [PATCH] tighten up fix for {{.}} realizing previous commit would treat {{.foo}} the same as {{.}} --- src/main/java/com/samskivert/mustache/Template.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/samskivert/mustache/Template.java b/src/main/java/com/samskivert/mustache/Template.java index 5999f7d..ab6ff8f 100644 --- a/src/main/java/com/samskivert/mustache/Template.java +++ b/src/main/java/com/samskivert/mustache/Template.java @@ -81,7 +81,7 @@ public class Template // if we're dealing with a compound key, resolve each component and use the result to // resolve the subsequent component and so forth - if (name.indexOf(DOT_NAME) > 0) { + if (name.indexOf(DOT_NAME) > 0 && !DOT_NAME.equals(name)) { String[] comps = name.split("\\."); // we want to allow the first component of a compound key to be located in a parent // context, but once we're selecting sub-components, they must only be resolved in the