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
support template option on new application generation #379
Conversation
looks good, I like it, though I think |
@@ -75,6 +75,7 @@ def console | |||
method_option :database, aliases: ['-d', '--db'], desc: "application database (#{Lotus::Generators::DatabaseConfig::SUPPORTED_ENGINES.keys.join('/')})", default: Lotus::Generators::DatabaseConfig::DEFAULT_ENGINE | |||
method_option :architecture, aliases: ['-a', '--arch'], desc: 'application architecture (container/app)', default: Lotus::Commands::New::Abstract::DEFAULT_ARCHITECTURE | |||
method_option :application_name, desc: 'application name, only for container', default: Lotus::Commands::New::Container::DEFAULT_APPLICATION_NAME | |||
method_option :template, desc: 'template engine', default: 'erb' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we update the description with the list of available option? I really want to make it easy for users, please see line 75 for inspiration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, let's be consistent and replace template
to template_engine
in .lotusrc
too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, that one might break the compatibility, I'd vote for replacing it, if we agree to do so, it's worth to mention it in the next release notes
cc @jodosha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joneslee85 If we decide to proceed with this feature, we must handle .lotusrc
as well.
@joneslee85 @aderyabin please have a look at #155 |
Thanks for reference. On Thu, Oct 22, 2015 at 4:26 PM, Luca Guidi notifications@github.com
Andrey Deryabin |
@jodosha @AlfonsoUceda Are you still want to create a template engine gems like |
This PR affects |
@aderyabin We actually closed #155 because we do NOT want to maintain |
I think that support template engines is not so difficult: @jodosha Am I correct? |
@aderyabin officially we don't want support templates but people can create gems for supporting lotus with those templates ;) |
The main problem is to maintain The templates created by action generator are empty, so it's just a matter to specify the right extension. We take it from Adding the gem to |
* replaced `template` to `template_engine` option * added support legacy `template` option in `.lotusrc` for existed applications * moved global constants to Lotus module
I'm gonna close this, because I'm afraid it can lead to inconsistencies and/or request for support for other template engines. This is something that should be eventually handled by third party gems. |
I've added support
--template=slim
option on new app generation,erb
value by default