Skip to content

Instantly share code, notes, and snippets.

@alexandre
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save alexandre/6469322786ab39042294 to your computer and use it in GitHub Desktop.

Select an option

Save alexandre/6469322786ab39042294 to your computer and use it in GitHub Desktop.
a question in pocoo channel...
{% extends "base.html" %}
{% block content %}
<h1>simple tool</h1>
<br>
<p>Click <a href="/logout">here </a>to logout</p>
<br>
<br>
<table>
<caption align="left">HMCs:</caption>
<tr><th>name</th><th>date</th>
{% for post in posts %}
<tr><td><a href="/checklpars/{{table_name}}">{{ post.name }}</a></td><td>{{ post.date_created }}</td>
{% endfor %}
</table>
{% endblock %}
@app.route('/checklpars/<table_name>')
def foo(table_name):
print(table_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment