fhd/clostache — pull request #38 by zeroem (2014-05-07 02:35:58+00:00)
Title: Handle path whitespace consistently

Previously, white space in var lookups was not handled consistently
between flat values and dotted notation. For instance, both `{{var}}`
and `{{ var }}` are handled consistently. When using dotted notation,
`{{map.var}}` works as expected, but `{{ map.var }}` would break. This
was due to the leading whitespace being passed along with the path,
resulting in the `: map` keyword, which didn't exist.

The solution presented resolves this by trimming whitespace from all
path components.