Copy all files but change the name of some automatically in yeoman
<p>I am trying to create a yeoman generator where I have to copy from templatePath to destinationPath some files and folders, but I would want to have some of this files with a variable that yeoman could change by one of the user's inputs.</p>

<p>like: "&lt;%=name%>-plugin.php" -> "hello-plugin.php"</p>

<p>I saw some references that this can be done but I can't find how.</p>

<p>I am doing right now:</p>

<pre><code>//Copy the configuration files
    app: function () {
      this.fs.copyTpl(
        this.templatePath('**'),
        this.destinationPath(), 
        {
          name: this.props.pluginName,
          name_function: this.props.pluginName.replace('-', '_'),
          name_class: this.props.className,
          description: this.props.pluginDescription
        }
      );
    }
</code></pre>

<p>I thought that with that code my &lt;%=name%> would magically changed on copyTpl but it doesn't work</p>