initial template for app based on wuttaweb

with e.g. `poser install` command
This commit is contained in:
Lance Edgar 2024-11-26 11:16:09 -06:00
commit 46b33a622f
18 changed files with 344 additions and 0 deletions

View file

@ -0,0 +1,26 @@
# -*- coding: utf-8; -*-
"""
{{cookiecutter.project_name}} Menu
"""
from wuttaweb import menus as base
class {{cookiecutter.__studly_prefix}}MenuHandler(base.MenuHandler):
"""
{{cookiecutter.project_name}} menu handler
"""
def make_menus(self, request, **kwargs):
# TODO: override this if you need custom menus...
# menus = [
# self.make_products_menu(request),
# self.make_admin_menu(request),
# ]
# ...but for now this uses default menus
menus = super().make_menus(request, **kwargs)
return menus