Skip to content

Instantly share code, notes, and snippets.

@ernestlv
Created November 3, 2014 19:16
Show Gist options
  • Save ernestlv/28b743975822e5daf719 to your computer and use it in GitHub Desktop.
Save ernestlv/28b743975822e5daf719 to your computer and use it in GitHub Desktop.
How to do templating on Node.js - Part Two
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Node.js template test with mustache</title>
</head>
<body>
<h1>Enter your information</h1>
<form action="/tmpl/:myTemplate.html" method="POST">
<label>First Name: <input name="firstname" type="text" value="{{firstname}}"></label>
<label>Last Name: <input name="lastname" type="text" value="{{lastname}}"></label>
<input type="submit" value="Submit">
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment