Skip to content

Instantly share code, notes, and snippets.

@romuloccomp
Created December 23, 2011 17:36
Show Gist options
  • Save romuloccomp/1514869 to your computer and use it in GitHub Desktop.
Save romuloccomp/1514869 to your computer and use it in GitHub Desktop.
Samples handlebars
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>OS Eletr&ocirc;nica - teste</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="http://192.168.11.49/os/style/bootstrap.css" rel="stylesheet">
<link href="http://192.168.11.49/os/style/application.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 45px;
}
</style>
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
<script src="http://192.168.11.49/os/js/vendor/jquery-1.7.min.js"></script>
<script src="http://192.168.11.49/os/js/vendor/bootstrap-alerts.js"></script>
<script src="http://192.168.11.49/os/js/vendor/jquery.maskedinput-rsp.js"></script>
<script src="http://192.168.11.49/os/js/application.js"></script>
<script src="http://192.168.11.49/os/js/teste.js"></script>
<script>
$(document).ready(function() {
});
</script>
</head>
<script type="text/javascript" src="http://192.168.11.49/os/js/vendor/handlebars-0.9.0.pre.4.js"></script>
<script id="some-template" type="text/x-handlebars-template">
<table>
<thead>
<th>Username</th>
<th>Real Name</th>
<th>Email</th>
</thead>
<tbody>
{{#users}}
<tr>
<td>{{username}}</td>
<td>{{firstName}} {{lastName}}</td>
<td>{{email}}</td>
</tr>
{{/users}}
</tbody>
</table>
</script>
<body>
<p>It works!!!</p>
<div id="content-placeholder">
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment