This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Twilio = Object.create({}) | |
Twilio.TwiML = { | |
build: function(fn) { | |
var prolog = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; | |
var Buffer = function(level) { | |
var buffer = ""; | |
var indent = function(i) { return new Array((i * 2) + 1).join(" ") } | |
var level = level || 1; | |
var append = function(str) { | |
buffer += indent(++level) + str + "\n"; |