def generate_recipes_that_can_be_made_html():
	data = """
		<html>
	<head>
	<title>Producable Recipes</title>
		<style type ="text/css">
		h1{color:red;}
	</style>
	</head>
	<body><h1> Recipes We Can Make!!!!!!</h1>"""
	x = list(db.recipes_we_can_make())
	for recipe in x:
		data += "<h2>%s</h2>" % (recipe.getName())
		data += "<ul>"
		for ing in recipe.getIngredients():
			data += "<li>%s -- %s</li>" % (ing[0], ing[1])
		data += "</ul>"
	data += generate_menu()
	data += """</body>
</html>
"""
	return data
示例#2
0
 def rpc_producable_recipes(self):
     return list(db.recipes_we_can_make())