volojs / volo

Create front end projects from templates, add dependencies, and automate the resulting projects
https://volojs.github.io/
Other
1.41k stars 99 forks source link

Ability to use placeholders in create templates #171

Closed foxbunny closed 9 years ago

foxbunny commented 11 years ago

This idea comes from Django, where the startproject command would would rename all directories named project_name and any text within sources that matches {{ project_name }} to the project name specified in the command line.

I suggest adding a separate command line option to specify the name, and do something similar to the above when that option is used. E.g.,

volo create dir path/to/template --name MyProject

Use case: I want to create a CoffeeScript template for Sencha Touch but Sencha Touch relies heavily on naming convention to locate files so there would be a lot of renaming to do each time a new project is created, or introduce some non-standard workaround for the naming problem which confuses developers. Having the ability to use placeholder text/name and do this automatically would be very helpful.