Skip to content

Add ability to generate both api and template scaffold #1761

@DrSloth

Description

@DrSloth

Feature Request

Is your feature request related to a problem? Please describe.
Currently one can either generate the API or the template (html/htmx) scaffold. In most cases i would want both.

Describe the solution you'd like
Just supply both scaffolds at the same time:

cargo loco g scaffold --api --htmx posts name:string likes:big_int

This should just generate both scaffolds, they shouldn't really conflict.
In most cases if something like filtering should be supported you obviously need to add parsing of the filters etc. but that concern is not part of the scaffold generator and probably shouldn't be.

Describe alternatives you've considered
None. This feature would add a lot of convenience if both is needed.

Are you open for contributions on this? Any pointers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions