Last active
March 31, 2016 03:19
-
-
Save robert8138/fa602cae737c1c30e8ac to your computer and use it in GitHub Desktop.
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
@webapp.route('/user') | |
def user(): | |
user_dict = {'first': 'Robert', 'last': 'Chang', 'twitter_handle': '@_rchang'} | |
html = """ | |
<table border=1> | |
<tr> | |
<td>{first}</td> | |
<td>{last}</td> | |
<td>{twitter_handle}</td> | |
</tr> | |
</table> | |
""".format(**user_dict) | |
return html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment