Finish compatibility with the old handlebars:

* foo"bar" is an invalid param
* {{foo}}bar{{/baz}} is invalid
* fix a number of issues with inverse sections
* add partials
This commit is contained in:
wycats
2010-12-03 16:49:04 -05:00
parent 9a6f77af56
commit f205cec745
8 changed files with 173 additions and 96 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ describe "Parser" do
end
it "parses a standalone inverse section" do
ast_for("{{^foo}}bar{{/baz}}").should == program do
ast_for("{{^foo}}bar{{/foo}}").should == program do
inverted_block do
mustache id("foo")