14 lines
334 B
Python
14 lines
334 B
Python
"""Shared web UI resources for EPUB search."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
from fastapi.templating import Jinja2Templates
|
|
|
|
PACKAGE_DIR = Path(__file__).resolve().parent
|
|
TEMPLATE_DIR = PACKAGE_DIR / "templates"
|
|
STATIC_DIR = PACKAGE_DIR / "static"
|
|
|
|
templates = Jinja2Templates(directory=TEMPLATE_DIR)
|