If you copy & paste directly from the getting started guide (https://hypergen.it/gettingstarted/begin/) you will hit Step 5 and get an exception similar to:
...
Exception: <function step5 at 0x72b40578a4d0>: Partial loading requires a target_id. Either as a kwarg or an attribute on the base_template function.
I fixed this by adding a target_id to the template function:
@contextmanager
def base_template():
doctype()
with html():
with head():
link(href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css")
with body(id_='body'):
yield
base_template.target_id = 'body'
If you copy & paste directly from the getting started guide (https://hypergen.it/gettingstarted/begin/) you will hit Step 5 and get an exception similar to:
I fixed this by adding a
target_idto the template function: