We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{data: true} --> newElement.data(templateData);
The text was updated successfully, but these errors were encountered:
The data key is already taken to represent the template data in the updated$(el).mustache() syntax; however we could use storeData: true instead, eg:
data
$(el).mustache()
storeData: true
$(el).mustache({ template: "my_template", data: { name: "Jonny", colour: "blue" }, method: "append" storeData: true });
The template data would then be accessible from the freshly created element, via:
$(el).data("templateData").name // Jonny.
Sorry, something went wrong.
jonnyreeves
No branches or pull requests
{data: true} --> newElement.data(templateData);
The text was updated successfully, but these errors were encountered: