Create attractive VASL scenarios, with loads of useful information embedded to assist with game play.
https://vasl-templates.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
614 B
19 lines
614 B
4 years ago
|
""" Main webapp handlers. """
|
||
|
|
||
|
from flask import render_template
|
||
|
|
||
|
from vasl_templates.webapp import app
|
||
|
|
||
|
# ---------------------------------------------------------------------
|
||
|
|
||
|
@app.route( "/national-capabilities/<nat>/<theater>/<int:year>", defaults={"month":1} )
|
||
|
@app.route( "/national-capabilities/<nat>/<theater>/<int:year>/<int:month>" )
|
||
|
def get_national_capabilities( nat, theater, year, month ):
|
||
|
"""Get the national capabilities snippet."""
|
||
|
return render_template( "national-capabilities.html",
|
||
|
NATIONALITY = nat,
|
||
|
THEATER = theater,
|
||
|
YEAR = year,
|
||
|
MONTH = month
|
||
|
)
|