philnash/twiml_template

View on GitHub
lib/sinatra/twiml.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'tilt/twiml'

module Sinatra
  module TwiML
    def twiml(template = nil, options = {}, locals = {}, &block)
      options[:default_content_type] = :xml
      render_ruby(:twiml, template, options, locals, &block)
    end
  end
end