express render html with data code example
Example: how to render different pages in nodes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> -->
<link rel="stylesheet" type="text/css" href="/Static/css/spaceGame.css">
<!-- <link rel="stylesheet" href="css/normalize.css"> -->
<link href="https://fonts.googleapis.com/css?family=Raleway:300,400" rel="stylesheet">
<title>{{title}}</title>
</head>
<body>
{{{body}}}
<!-- Footer -->
<script src="https://unpkg.com/vue"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="/Static/script/someTest.js"></script>
</body>
</html>