Skip to content
This repository has been archived by the owner on Feb 9, 2020. It is now read-only.

qerub/rack-esi

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Rack::ESI

Rack::ESI is an implementation of a small (but still very useful!) subset of ESI (Edge Side Includes). ESI tackles the problem of caching dynamic web content by recognizing that some content parts are static (at least for a while) and thereby cachable. Rack::ESI's primary raison d'être is to act as a substitue for real ESI processors during application development to keep your software setup simple. However, it can also be used standalone in production together with Ryan Tomayko's Rack::Cache to enable caching without leaving the rosy world of Ruby.

Currently Supported Expressions

  • <esi:include src="/..."/> where src is an absolute path to be handled by the Rack application.
  • <esi:remove>...</esi:remove>
  • <esi:comment text="..."/>

Examples

rackup examples/basic_example_application.ru

With Rack::Cache:

rackup examples/basic_example_application_with_caching.ru

About

An implementation of a small (but still very useful!) subset of ESI for Rack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages