Skip to content

Instantly share code, notes, and snippets.

@bmorelli25
Created June 26, 2017 21:12
Show Gist options
  • Save bmorelli25/3e08c8593c1721f840d300304919b589 to your computer and use it in GitHub Desktop.
Save bmorelli25/3e08c8593c1721f840d300304919b589 to your computer and use it in GitHub Desktop.
Weather Website - Using Pug.js
doctype html
html
head
meta(charset='utf-8')
title Test
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')
body
.container
fieldset
form(action='/', method='post')
input.ghost-input(name='city', type='text', placeholder='Enter a City', required='')
input.ghost-button(type='submit', value='Get Weather')
if weather
p= weather
if error
p= error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment