Skip to content

Instantly share code, notes, and snippets.

@Odomhae
Created January 8, 2020 13:08
Show Gist options
  • Save Odomhae/a7cd48e211fbcc3e5b099a9cbe75cfa7 to your computer and use it in GitHub Desktop.
Save Odomhae/a7cd48e211fbcc3e5b099a9cbe75cfa7 to your computer and use it in GitHub Desktop.
<!-- EJS stands for Embedded JavaScript -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="container">
<fieldset>
<form action="/" method="post">
<input name="city" type="text" class="ghost-input" placeholder=" Enter a City" required>
<input type="submit" class="ghost-button" value="Get Weather">
</form>
<% if(weather !== null){ %>
<p><%= weather %> </p>
<% } %>
<% if(error !== null) {%>
<p><%= error %></p>
<% } %>
</fieldset>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment