def cards():
	""" Renders cards for all jammers with a ticket """
	jamsite = JamSite.load()
	jamsite.apply_human()
	if not_imported(jamsite):
		return redirect(url_for('index'))
	return Response(render_jammers(jamsite.jammers_sorted_by_main_role(with_ticket=True), extra=load_extra()))
def all_cards():
	""" Renders cards for all known about jammers associated with this site.
		ticekt holders and waiting list jammers """
	jamsite = JamSite.load()
	jamsite.apply_human()
	if not_imported(jamsite):
		return redirect(url_for('index'))
	return Response(render_jammers(jamsite.jammers.values()))
def write_jammer_cards(jammers, filename="jammers.html", extra=False):
	""" Serializes """
	with open(filename, "w+") as htmlfile:
		for chunk in render_jammers(jammers, extra):
			htmlfile.write(chunk)
	return htmlfile