Created
November 3, 2014 19:16
-
-
Save ernestlv/28b743975822e5daf719 to your computer and use it in GitHub Desktop.
How to do templating on Node.js - Part Two
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> | |
<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