wycats/handlebars.js — Issue #191: GitHub Pages plays poorly with Handlebars
Author: RichMorin
Created: 2012-02-22 17:24:36+00:00
State: open

GitHub Pages seems like a very convenient and powerful platform for collaborative development and deployment of single-page (eg, Ember) apps. Unfortunately, there is a small syntactic conflict: both Liquid (used by Jekyll) and Handlebars use the "{{ ... }}" notation.

Getting these strings past Liquid to Handlebars can be done, but it's a nuisance. My current workaround, for example, is to use "{| ... |}" and "{|| ... ||}" in place of "{{ ... }}" and "{{{ ... }}}". This works for me, but I'm not looking forward to explaining it to others. Assuming that I'm not simply missing some existing solution, I'm not sure how the problem should be resolved.

One possibility would be to support alternative syntax in Handlebars (like I do, informally), but this seems awkward and error-prone. A better approach might be to have some sort of syntax in Liquid that disables its interpretation of these strings for selected sections of a document.