Sha256: eca32cc52b5afc6be9ab2c754abf8afc3043dff8e4a07682c6f11425e7c5d3ce

Contents?: true

Size: 829 Bytes

Versions: 3

Compression:

Stored size: 829 Bytes

Contents

= EsiForRack 

== What is ESI?

ESI is a standard way to assemble pages. This spec is supported by several reverse proxies.

http://slideshare.net/joshbuddy/to-the-edge-of-web-performance-and-beyond

== Usage

In your builder, just use it.

  use EsiForRack

In your HTTP responses, just normal ESI tags. If you're working within Rails, give Spackle a try. 

http://github.com/joshbuddy/spackle

Here is an example of a response that would be parsed by EsiForRack

  <html>
    <body>
      <esi:include src="/helloworld"/>
    </body>
  </html>
  
In this case, a request to <tt>/helloworld</tt> would be made by EsiForRack to fill in the request. If your application sent: "Hey world" as a response to <tt>/helloworld</tt> the above example would be interpolated to:

  <html>
    <body>
      Hey world
    </body>
  </html>

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
joshbuddy-esi-for-rack-0.0.2 README.rdoc
joshbuddy-esi-for-rack-0.0.3 README.rdoc
esi-for-rack-0.0.4 README.rdoc