Created
June 26, 2017 21:12
-
-
Save bmorelli25/3e08c8593c1721f840d300304919b589 to your computer and use it in GitHub Desktop.
Weather Website - Using Pug.js
This file contains hidden or 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 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