Skip to content

feature request: Check that templates exist on route creation #61

@JacobHayes

Description

@JacobHayes

Hi, thanks for the cool library! One thing I've been wanting is eager validation that the referenced templates exist when the route is defined, rather than when run. Simple name references would check that the path exists; ComponentHeader would iterate over the templates and check as above; arbitrary RequestComponentSelector may just be a no-op (or add an optional method to run some validation).

I otherwise use a Path for my templates dir and was previously referencing templates with templates_path / "template.html" and would check for .exists().

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions