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
Post a Comment