stephanepericat/beardcomb — Issue #1: Partial lookup fails on extra whitespace
Author: MartinodF
Created: 2012-02-22 14:20:34+00:00
State: open

The `mustache.js` spec uses partials without any space between `>` and the partial name, but I found many examples (including the [readme](https://github.com/janl/mustache.js/blob/master/README.md) of `mustache.js` itself) adding a space between them: `{{> partial}}`.

Could you modify the RegExp in beardcomb to support this? I believe adding `\\s?` (or even `\\s*`) should work:

RegExp("{{([>-])\\s?([^\\/#\\^]+?)\\1?}}+", "g")

Thanks!