Skip to content

Instantly share code, notes, and snippets.

@karan-ta
Created August 27, 2020 09:55
Show Gist options
  • Save karan-ta/1adbae1bd52fc41eee44b6a255dba486 to your computer and use it in GitHub Desktop.
Save karan-ta/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>
@karan-ta
Copy link
Author

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