Add snippet for fanstatic/libcache when generating web project

This commit is contained in:
Lance Edgar 2024-06-05 23:17:15 -05:00
parent 9eda1a48c2
commit 44be0c7c31
3 changed files with 22 additions and 0 deletions

View file

@ -660,6 +660,13 @@ class PoserProjectGenerator(RattailAdjacentProjectGenerator):
os.path.join(static, '__init__.py'),
context)
libcache = os.path.join(static, 'libcache')
os.makedirs(libcache)
self.generate('package/web/static/libcache/README.mako',
os.path.join(libcache, 'README'),
context)
web_templates = os.path.join(web, 'templates')
os.makedirs(web_templates)

View file

@ -4,6 +4,19 @@
Static assets
"""
# from fanstatic import Library, Resource
# # libcache
# libcache = Library('${pkg_name}_libcache', 'libcache')
# bb_vue_js = Resource(libcache, 'vue.esm-browser-3.3.11.prod.js')
# bb_oruga_js = Resource(libcache, 'oruga-0.8.10.js')
# bb_oruga_bulma_js = Resource(libcache, 'oruga-bulma-0.3.0.js')
# bb_oruga_bulma_css = Resource(libcache, 'oruga-bulma-0.3.0.css')
# bb_fontawesome_svg_core_js = Resource(libcache, 'fontawesome-svg-core-6.5.2.js')
# bb_free_solid_svg_icons_js = Resource(libcache, 'free-solid-svg-icons-6.5.2.js')
# bb_vue_fontawesome_js = Resource(libcache, 'vue-fontawesome-3.0.6.index.es.js')
def includeme(config):
config.include('tailbone.static')

View file

@ -0,0 +1,2 @@
Place files in this folder, which correspond to the Resource()
definitions found in `${pkg_name}/web/static/__init__.py`