wycats/handlebars.js — pull request #389 by leshill (2012-12-13 19:02:21+00:00)
Title: Partials can be paths

Allows partials with slashes, a common partial syntax. For example:

{{> shared/dude}}

Yes, there are workarounds (cf. [handlebars_assets](https://github.com/leshill/handlebars_assets#partials)), but the slash syntax is not only widely used but maps directly to template hierarchies usually from the file system. This is incredibly useful when working in a large template set.

Looking at the lexer, it is treating the partial name as a context path (an ID). This does allow the not-very-obvious or intuitive literal syntax:

{{> [shared/dude]}}

This commit makes partial names part of the `handlebars` syntax and deliberately removes the old context literal syntax. If necessary for backward compatibility, that could be brought back with a simple change [here](https://github.com/leshill/handlebars.js/blob/b97fdfe76a5848d7410caf6eb1582e1d4195eaad/src/handlebars.l#L50)

Related issues: #95, #268