Skip to content

Instantly share code, notes, and snippets.

@zontyp
Created August 27, 2020 09:55
Show Gist options
  • Save zontyp/1adbae1bd52fc41eee44b6a255dba486 to your computer and use it in GitHub Desktop.
Save zontyp/1adbae1bd52fc41eee44b6a255dba486 to your computer and use it in GitHub Desktop.
Get started with handlebars
<!DOCTYPE html>
<html>
<head>
<script src="handlebars.min-v4.7.6.js"></script>
<title></title>
</head>
<body>
<script type="text/javascript">
const template = Handlebars.compile("Name: {{name}}");
console.log(template({ name: "Nils" }));
</script>
</body>
</html>
@zontyp
Copy link
Author

zontyp commented Aug 27, 2020

First Download the handlebars js and then run the above code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment