Skip to content

Commit

Permalink
First steps towards more flexible generators, as referenced in releva…
Browse files Browse the repository at this point in the history
…nt PRs. (especially in context of coffee-script, different template languages, and Grunt options. Considering possible ways to integrate w/ yeoman.)
  • Loading branch information
mikermcneil committed Nov 28, 2013
1 parent 636b3e3 commit 693d21e
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ module.exports = function generate ( options, handlers ) {
break;
}

var pathToControllerTemplate = path.resolve(__dirname,'./templates/controller.ejs');
var pathToControllerTemplate = path.resolve(__dirname,'./generators/controller.ejs');
var controllerTemplate = fs.readFileSync(pathToControllerTemplate, 'utf8');
var pathToActionTemplate = path.resolve(__dirname,'./templates/action.ejs');
var pathToActionTemplate = path.resolve(__dirname,'./generators/action.ejs');
var actionTemplate = fs.readFileSync(pathToActionTemplate, 'utf8');

// Create the actions' code
Expand Down Expand Up @@ -165,9 +165,9 @@ module.exports = function generate ( options, handlers ) {
break;
}

var pathToModelTemplate = path.resolve(__dirname,'./templates/model.ejs');
var pathToModelTemplate = path.resolve(__dirname,'./generators/model.ejs');
var modelTemplate = fs.readFileSync(pathToModelTemplate, 'utf8');
var pathToAttributeTemplate = path.resolve(__dirname,'./templates/attribute.ejs');
var pathToAttributeTemplate = path.resolve(__dirname,'./generators/attribute.ejs');
var attributeTemplate = fs.readFileSync(pathToAttributeTemplate, 'utf8');

// Create the attributes' code
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 693d21e

Please sign in to comment.