Skip to content

Instantly share code, notes, and snippets.

View simonblee's full-sized avatar

Simon Blee simonblee

View GitHub Profile
@simonblee
simonblee / index.html
Last active December 21, 2015 01:28
Marionette with Dust templates example. Save `package.json` and `index.html` into the same directory. Run `npm install` and then open `index.html`. First the dust template is compiled, then a view is created which uses the compiled template, then the view is rendered and attached to the body DOM element. In production, it's recommended to pre-co…
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Marionette Dust Example</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript" src="node_modules/lodash/lodash.js"></script>
<script type="text/javascript" src="node_modules/backbone/backbone.js"></script>