Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abscissa_generator: Generate new apps with "abscissa new" #38

Merged
merged 1 commit into from
May 17, 2019

Conversation

tony-iqlusion
Copy link
Member

Adds support for generating new Abscissa apps from a built-in template.

Prior to this there was not a template for creating new Abscissa apps, and wiring them up either involved looking through an existing app, or intimate knowledge of how the framework works.

This adds a new abscissa_generator crate, and also adds a src/bin/abscissa making this crate into a binary crate which contains an abscissa command-line application (itself a proper Abscissa app!) which will be available when cargo install abscissa is used.

The application template is implemented using Handlebars, and vendored into the abscissa_generator crate (which is not included by applications). The decision to use Handlebars was made after evaluating a few different options for templating rust apps including
cargo-generate (which looks cool, but it seems like Abscissa could benefit from something which both lives in the same git repo and is more directly integrated with the framework, ala Rails)

Adds support for generating new Abscissa apps from a built-in template.

Prior to this there was not a template for creating new Abscissa apps,
and wiring them up either involved looking through an existing app,
or intimate knowledge of how the framework works.

This adds a new `abscissa_generator` crate, and also adds a
`src/bin/abscissa` making this crate into a binary crate which contains
an `abscissa` command-line application (itself a proper Abscissa app!)
which will be available when `cargo install abscissa` is used.

The application template is implemented using Handlebars, and vendored
into the `abscissa_generator` crate (which is not included by
applications). The decision to use Handlebars was made after evaluating
a few different options for templating rust apps including
`cargo-generate` (which looks cool, but it seems like Abscissa could
benefit from something which both lives in the same git repo and is more
directly integrated with the framework, ala Rails)
@tony-iqlusion tony-iqlusion merged commit b159872 into develop May 17, 2019
@tony-iqlusion tony-iqlusion deleted the generator branch May 17, 2019 20:42
@tony-iqlusion tony-iqlusion mentioned this pull request Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant