Skip to content

Feature Request: Decorator for implicit export of a view/route #61

@befocken

Description

@befocken

I think it would be awesome to have a decorator (like @export_route_to_js) that one could add to a view which automatically adds the view (or better all of the routes that it is being connected with) to the exported routes. This way, one does not need to set JS_ROUTES_INCLUSION_LIST manually, though this would of course be easier when exporting all routes of an app.

In relation to #40, the decorator could also get a parameter groups, which adds the routes of this view to the given groups.

Unfortunately, I do not know how to implement this with a decorator as of right now, but I'll possibly have some time to look into that in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions