Skip to content

Instantly share code, notes, and snippets.

@sbellity
Forked from anonymous/index.html
Last active August 29, 2015 13:56
Show Gist options
  • Save sbellity/8882447 to your computer and use it in GitHub Desktop.
Save sbellity/8882447 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="https://d3f5pyioow99x0.cloudfront.net/0.8/hull.js"></script>
<script>
Hull.init({
jsUrl: 'https://d3f5pyioow99x0.cloudfront.net',
appId: '519cf60108f40c81e7000007',
orgUrl: 'https://hull-demos.hullapp.io'
});
Hull.component('hello', {
templates: ['a', 'a/b', 'a/b/c']
});
</script>
</head>
<body>
<div data-hull-component="hello"></div>
<script type="text/handlebars" data-hull-template="hello/a">
<h1>A</h1>
{{> hello/a/b}}
</script>
<script type="text/handlebars" data-hull-template="hello/a/b">
<h1>A/B</h1>
{{> hello/a/b/c}}
</script>
<script type="text/handlebars" data-hull-template="hello/a/b/c">
<h1>A/B/C</h1>
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment