Started flask mad libs recreation 9:15am. Added basic parts of flask. Tested server.
Created starter template for creating madlib
Added route/handler for form submit. Added templating syntax to bottom of page for finished madlib. Works.
Added JS script at bottom of body for AJAX .get request. This works without any change to madlibs.py. Not sure why...
Added comments to JS script to explain each line.
Changed AJAX script to use .load instead
Add form.reset() to ajax JS. Add if-compliments for loop in Jinja to index.html. Run a function that selects random compliments in Python handler. Had to provide else statement for if compliment checkbox was not checked (returns as None).
App works, but I'm confused about redirect, url_for, and how to clear the URL after submitting the form (if possible?)