Created
October 6, 2011 17:54
-
-
Save karledurante/1268114 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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