Skip to content

Instantly share code, notes, and snippets.

@cfjedimaster
Created April 14, 2012 16:42
Show Gist options
  • Save cfjedimaster/2385753 to your computer and use it in GitHub Desktop.
Save cfjedimaster/2385753 to your computer and use it in GitHub Desktop.
<!--- Raw dynamic data --->
<cfsavecontent variable="content">
<h1>Moo</h1>
<p>
Rock your body...
</p>
<script src="https://gist.github.com/2385560.js?file=gistfile1.txt"></script>
<p>
After gist.
</p>
</cfsavecontent>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Single page template</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
</head>
<body>
<div data-role="page" id="page2">
<div data-role="header">
<h1>Page 2</h1>
</div>
<div data-role="content">
<cfoutput>
#replaceGistWithRaw(content)#
</cfoutput>
</div>
<div data-role="footer">
<h4>Footer content</h4>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment