sproutcore / abbot

SproutCore Build Tools [deprecated]
http://www.sproutcore.com
88 stars 44 forks source link

sc-gen templates aren't configurable #39

Open bascht opened 13 years ago

bascht commented 13 years ago

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/@filename@.js

// ==========================================================================
// Project:   <%= namespace_instance_name %>
// Copyright: ©<%= Time.now.year %> My Company, Inc.
// ==========================================================================
wagenet commented 13 years ago

We should have done this a long time ago.

wagenet commented 13 years ago

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 commented 13 years ago

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