Permalink
Browse files

fixed package.json keywords. Minor improvements.

  • Loading branch information...
eduludi committed Oct 4, 2013
1 parent c9cdb88 commit f105c8a19182ada131eab2761167a902c44daa6a
Showing with 6 additions and 5 deletions.
  1. +2 −2 package.json
  2. +4 −3 view/index.js
View
@@ -1,9 +1,9 @@
{
"name": "generator-lqm",
- "version": "0.2.1",
+ "version": "0.2.2",
"description": "A Lungo-Quo-Monocle MVC app generator for Yeoman",
"keywords": [
- "lungo quo monocle yeoman-generator mvc"
+ "yeoman-generator, yeoman, generator, mvc, lungo, quo, monocle"
],
"homepage": "https://github.com/eduludi/generator-lqm",
"bugs": "https://github.com/eduludi/generator-lqm/issues",
View
@@ -10,12 +10,13 @@ var ViewGenerator = module.exports = function ViewGenerator(args, options, confi
this.viewName = fleck.singularize(this.name);
this.pluralViewName = fleck.pluralize(this.name);
- this.mustacheTemplatePath = 'app/templates/'+this._.underscored(this.viewName)+'.mustache';
+ this.viewPath ='app/views/'+this._.underscored(this.viewName)+'.coffee';
+ this.templatePath = 'app/templates/'+this._.underscored(this.viewName)+'.mustache';
};
util.inherits(ViewGenerator, yeoman.generators.NamedBase);
ViewGenerator.prototype.files = function files() {
- this.template('view.coffee', 'app/views/'+this._.underscored(this.viewName)+'.coffee');
- this.template('view.mustache',this.mustacheTemplatePath);
+ this.template('view.coffee', this.viewPath);
+ this.template('view.mustache',this.templatePath);
};

0 comments on commit f105c8a

Please sign in to comment.