Skip to content

Generate Resource classes as .pm files to enable reuse #19

Description

@ungrim97

Currently all resources are created in memory as Web::Machine subclasses. There should likely be a Schema::Loader style option to output these for future use/modification into a specific directory.

So for a DBIC Schema:
MyApp/Schema/Result/Artist

There would be a corresponding
MyApp//Resource/Artist
MyApp/
/ResourceSet/Artist

These could likely also provide some override features such as url path etc.

WAPID should then load all modules in this directory and create the required Dir assuming ResourceSet to be an extension of Resource with required defaults.

This should have the added side effect of reducing start up time in WAPID, though adding a "Load on the fly" option is probably desirable.

Relates to #18.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions