Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Compilação do template
jsonTemplate = {
"Widgets": {
Modal: {
head: {
title: "Teste de Modal"
},
body: "Teste do corpo"
},
Buttons: [
{
name: "Butao", css: "teste", text: "Salvar"
},
{
name: "Butao", css: "teste", text: "Editar"
}
]
}
};
var config = {
url: "tmpl.modal.html", sprite: "Widgets.Modal"
}
$.compileTemplates(config);
var config = {
url: "tmpl.modal.html", sprite: "Widgets.Modal", json: jsonTemplate
}
var $modal = $("< div >").render(jsonTemplate, "Widgets.Modal");
$(document.body).append($modal);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.