Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
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"
var config = {
url: "tmpl.modal.html", sprite: "Widgets.Modal", json: jsonTemplate
var $modal = $("< div >").render(jsonTemplate, "Widgets.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.