Rack::ESI is an implementation of a small (but still very useful!) subset of ESI.
It allows you to easily cache everything but the user-customized parts of your dynamic pages without leaving the comfortable world of Ruby when used together with Ryan Tomayko's Rack::Cache.
<esi:include src="..."/>
wheresrc
is a relative URL to be handled by the Rack application.<esi:include src="..." alt="..." onerror="continue"/>
wherealt
is an alternative URL in case of error.<esi:remove>...</esi:remove>
<esi:comment text="..."/>
rackup examples/basic_example_application.ru
With Rack::Cache:
rackup examples/basic_example_application_with_caching.ru
rake notes # Show TODOs and FIXMEs
rake notes:fixme # Show FIXMEs
rake notes:todo # Show TODOs