method
template
v2_6_3 -
Show latest stable
- Class:
Bundler::Thor::Actions
template(source, *args, &block)public
Gets an ERB template at the relative source, executes it and makes a copy at the relative destination. If the destination is not given it’s assumed to be equal to the source removing .tt from the filename.
Parameters
|
the relative path to the source root. | |
|
the relative path to the destination root. | |
|
give :verbose => false to not log the status. |
Examples
template "README", "doc/README" template "doc/README"