Skip to content

Instantly share code, notes, and snippets.

@karledurante
Created October 6, 2011 17:54
Show Gist options
  • Save karledurante/1268114 to your computer and use it in GitHub Desktop.
Save karledurante/1268114 to your computer and use it in GitHub Desktop.
# Layout
<html>
<head>
</head>
<body>
<h1>header</h1>
<p>hi</p>
<h2>content</h2>
<%= yield %>
<h2>footer</h2>
<p>bye</p>
</body>
</html>
# View (index)
content!!!
before esi....
<esi:include src="http://customink.local/pricing/delivery_quote" />
after esi....
# actual output received by browser:
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<h1>header</h1>
<p>hi</p>
<h2>content</h2>
content!!!
before esi....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment