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

sc-gen templates aren't configurable #39

Open
bascht opened this issue Apr 14, 2011 · 3 comments
Open

sc-gen templates aren't configurable #39

bascht opened this issue Apr 14, 2011 · 3 comments
Assignees

Comments

@bascht
Copy link

bascht commented Apr 14, 2011

There is no way to configure the file templates that are generated by sc-gen, so you end up changing every generated file by hand. It would be good to move the doc block to a separate template or file.

E.g. - "My Company, Inc." in lib/gen/controller/templates/controllers/@[email protected]

// ==========================================================================
// Project:   <%= namespace_instance_name %>
// Copyright: ©<%= Time.now.year %> My Company, Inc.
// ==========================================================================
@ghost ghost assigned wagenet May 13, 2011
@wagenet
Copy link
Contributor

wagenet commented May 13, 2011

We should have done this a long time ago.

@wagenet
Copy link
Contributor

wagenet commented May 14, 2011

Master now has support for passing an ENV variable in the format: COMPANY="Real Company, Inc." sc-init NewProject. This still is a bit clunky so I plan to add in better support as a parameter or a config setting.

@bascht
Copy link
Author

bascht commented May 16, 2011

Yep. Config setting would come in handy.
Just a config list in the Buildfile - would be all that we need. :-)

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

No branches or pull requests

2 participants