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

Support --template for hanami new #515

Merged
merged 1 commit into from Feb 16, 2016
Merged

Conversation

aderyabin
Copy link
Contributor

Closes #507

@aderyabin
Copy link
Contributor Author

// cc @jodosha

SUPPORTED_ENGINES = %w(erb slim haml).freeze
DEFAULT_ENGINE = 'erb'.freeze

attr_reader :engine
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think about name instead of engine? To me, template_engine.name is more meaningful than template_engine.engine

@runlevel5
Copy link
Member

Have we cover haml and erb engine in our tests?

@runlevel5
Copy link
Member

👍🏼

@jodosha jodosha changed the title Closes #507. Support --template for hanami new Support --template for hanami new Feb 15, 2016
@jodosha jodosha self-assigned this Feb 15, 2016
head
title
| <%= config[:classified_app_name] %>
- = favicon
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aderyabin This dash here causes an exception. Please have a look at the attached screenshot. Can you confirm the problem?

screen shot 2016-02-15 at 18 13 56

@jodosha
Copy link
Member

jodosha commented Feb 15, 2016

@aderyabin It works fine except for an error caused by the generated Slim layout template.

@aderyabin
Copy link
Contributor Author

@jodosha I fixed it, but the slim template is already in master. Please check that it works from master.

Workflow:
– generate application
– change template option to slim in .hanamirc
– generate new view template
– start server

I guess it should not work.

@jodosha
Copy link
Member

jodosha commented Feb 15, 2016

@aderyabin Please fix it as well. Thank you very much.

/cc @davydovanton @joneslee85

@aderyabin
Copy link
Contributor Author

@jodosha Fixed in the PR.

@jodosha jodosha merged commit df39504 into hanami:master Feb 16, 2016
@jodosha
Copy link
Member

jodosha commented Feb 16, 2016

@aderyabin Merged in master. Thank you very much 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants