nystudio107 / generator-craftplugin

generator-craftplugin is a Yeoman generator for Craft CMS plugins
MIT License
73 stars 30 forks source link

Typo fixed, and added user defined plugin name #2

Closed ChrisRally closed 8 years ago

ChrisRally commented 8 years ago

Personally, the ability to rename a plugin and pretty hand - would be great if it's there out of the box for new plugin developers.

khalwat commented 8 years ago

Thanks Chris! I fixed the typo in the TwigExtension

As for returning a custom name, I like the idea... but I think it'd make sense to do it if the appropriate changes were also made in the _settings.twig file, and it probably should return a default if no custom name is specified.

ChrisRally commented 8 years ago

Both of those features are in this PR Andrew, the default name is used automatically if there's no override set and I have updated _settings.twig file to add a form field for the override.