Skip to content

Instantly share code, notes, and snippets.

@okdistribute
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save okdistribute/b0966095117100c81030 to your computer and use it in GitHub Desktop.

Select an option

Save okdistribute/b0966095117100c81030 to your computer and use it in GitHub Desktop.
template
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css">
</head>
<body>
<script id='workspace' type='text/ractive'>
<p>Hello, {{name}}!</p>
</script>
<script src='http://cdn.ractivejs.org/latest/ractive.js'></script>
<script type="text/javascript">
var ractive = new Ractive({
// The `el` option can be a node, an ID, or a CSS selector.
el: 'body',
template: '#workspace',
data: { name: 'world' }
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment