Skip to content

Instantly share code, notes, and snippets.

@bduggan
Created March 20, 2013 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bduggan/5206287 to your computer and use it in GitHub Desktop.
Save bduggan/5206287 to your computer and use it in GitHub Desktop.
%= stylesheet "http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css";
</head>
<body>
<pre>
Sample:
<span id='foo'></span>
</pre>
<script type='text/template' id='ref_template'>
journal : <b><%%= journal %><b>
</script>
%= javascript begin
$(document).ready(function() {
$("#foo").html(
_.template(
$('#ref_template').html(),{ journal : "foo" }
)
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment