Sha256: ef702f965a3d9529089105eaee897cd0641c926700afdd0ed4fa1b8e132e5dcb
Contents?: true
Size: 347 Bytes
Versions: 1
Compression:
Stored size: 347 Bytes
Contents
require 'rubygems' require 'capcode' $:.unshift( "../lib" ) require 'capcode/render/xml' module Capcode class Index < Route '/' def get render :xml => :index end end end module Capcode::Views def index xml? :version => '1.0' html do body do h1 "Hello XML !" end end end end Capcode.run( )
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capcode-render-xml-0.1.0 | examples/render-xml.rb |