Open me-ascii opened 11 years ago
I found that only html of partials mapped by baseData
in the .bind
(not base
that passed in the args).
https://github.com/flatiron/plates/blob/master/lib/plates.js#L350
So when foo
moved to the partial
var partial = '<li class="partial"><p class="foo"></p></li>',
Bind returns
<div><h1 class="foo"></h1><ul class="menu">
<li class="partial"><p class="foo">bar</p></li></ul></div>
As found this issue refers to the https://github.com/flatiron/plates/issues/76
Have a trouble with data mapping if used partials. It can be illustrated on expamle from your
README.md
Results is:
foo = 'bar'
was not rendered!