examples/hello_world_app.rb
# Output /
# Here comes header from Header Action exclusively for buzzmenot
#
# Hello World!
#
# Here comes footer from Footer Action exclusively for github
#
Output
Here comes header from Header Action exclusively for buzzmenot

Hello World!

Here comes footer from Footer Action exclusively for github
Output Here comes header from Header Action exclusively for buzzmenot Hello World! Here comes footer from Footer Action exclusively for github
def index(request, response)
    response['rack.rsi'] = '1'
    response['Cache-Control'] = 'max-age=3600'
    response.write(%{
      <title>HelloWorld</title>
      <%= rsi_include( "/header?user=buzzmenot" ) %>
      <p>Hello World!</p>
      <%= rsi_include( "/footer?company=github" ) %>
    }.gsub(/^\s*/, "").strip)
  end
def index ( request , response ) response [ 'rack.rsi' ] = '1' response [ 'Cache-Control' ] = 'max-age=3600' response . write ( %{
      <title>HelloWorld</title>
      <%= rsi_include( "/header?user=buzzmenot" ) %>
      <p>Hello World!</p>
      <%= rsi_include( "/footer?company=github" ) %>
    } . gsub ( / ^ \s * / , "" ) . strip ) end
Output
Here comes header from Header Action exclusively for buzzmenot
Output Here comes header from Header Action exclusively for buzzmenot
request
response