Created
August 27, 2020 09:55
-
-
Save karan-ta/1adbae1bd52fc41eee44b6a255dba486 to your computer and use it in GitHub Desktop.
Get started with handlebars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First Download the handlebars js and then run the above code