older version (without mustache standalone tag handling):
http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-271106d.js
http://jsfiddle.net/4Lkmnru6/
template: 1\n{{foo~}} \n\n 23\n{{bar}}4
output: 1\n23\n4
( all space and line change are removed after {{foo~}} before 23 )
current version (with mustache standalone tag handling):
http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-cf343a1.js
http://jsfiddle.net/4Lkmnru6/1/
template: 1\n{{foo~}} \n\n 23\n{{bar}}4
output: 1\n\n 23\n4
(only one space and line change are removed after {{foo~}} before 23 )
Questions:
- should space control behavior work just like old version?
- space control should be handled before or after standalone tag detection?