You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't render properly. The value mypass is rendered after the input. The template should be rendered exactly as is without any variable replacements.
The issue here seems to be that by default Plates tries to match the value of all attributes to the data keys (not just the ID as the documentation says).
Another example based on the simple usage case:
varP=require('plates');varhtml='<div id="test">Old Value</div><div data-attr="test">Old Value</div>';vardata={"test": "New Value"};varoutput=P.bind(html,data);
Given the following template:
And the following code:
This doesn't render properly. The value mypass is rendered after the
input
. The template should be rendered exactly as is without any variable replacements.See in action here:
http://jsfiddle.net/tauren/HRDaD/
The text was updated successfully, but these errors were encountered: