Yeoman generator template variable as filename -


is possible set filename while copying variable?

for example: appname set through console. site title appname..

var sitetitle = {   site_name: this.appname };   this.template("html/_index.html", "app/html/index.html", sitetitle); 

this sets placeholder appname. fine.

but like: name css file appname , set parentclass appname(this works).

this.template("css/_main.css", "app/css/" + sitetitle + ".css", sitetitle); 

is possible? how i've done it's not working.

greets, sergej

ok, fixed problem.

instead of using variable

this.template("css/_main.css", "app/css/" + sitetitle + ".css", sitetitle); 

i need use appname directly

this.template("css/_main.css", "app/css/" + this.appname + ".css", sitetitle); 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -