Skip to content

Instantly share code, notes, and snippets.

@blturner
Created May 7, 2015 06:18
Show Gist options
  • Save blturner/1c9b39b94756b010cdb9 to your computer and use it in GitHub Desktop.
Save blturner/1c9b39b94756b010cdb9 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div id="container"></div>
<script src='http://cdn.ractivejs.org/latest/ractive.min.js'></script>
<script src='bundle.js'></script>
</body>
</html>
var template = require('./template.ract').template
var ractive = new Ractive({
el: '#container',
template: template,
data: {name: 'world'}
})
// budo index.js:bundle.js -t ractify
<p>Hello, {{name}}!</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment