Permalink
Browse files

Merge pull request #16 from stephenmathieson/update-year

Updating 'year' in Readme.md to the current year
  • Loading branch information...
2 parents d3570c7 + 24f15e4 commit 4fb4ec3fd43ebc83796f972fa52d6ba14c08fbf3 @tj committed Jun 10, 2013
Showing with 6 additions and 4 deletions.
  1. +4 −2 bin/ngen
  2. +1 −1 templates/default/content/Readme.md
  3. +1 −1 templates/git/content/Readme.md
View
6 bin/ngen
@@ -67,7 +67,9 @@ function Template(name) {
this.path = templates + '/' + name;
this.contentPath = this.path + '/content';
this.mod = require(this.path);
- this.values = {};
+ this.values = {
+ year: new Date().getFullYear()
+ };
this.directories = {};
}
@@ -121,7 +123,7 @@ Template.prototype.init = function(dest){
Template.prototype.__defineGetter__('files', function(){
var self = this
, files = [];
-
+
(function next(dir) {
fs.readdirSync(dir).forEach(function(file){
files.push(file = dir + '/' + file);
View
2 templates/default/content/Readme.md
@@ -7,7 +7,7 @@
(The MIT License)
-Copyright (c) 2012 {{name}} <{{email}}>
+Copyright (c) {{year}} {{name}} <{{email}}>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
2 templates/git/content/Readme.md
@@ -7,7 +7,7 @@
(The MIT License)
-Copyright (c) 2011 {{name}} <{{email}}>
+Copyright (c) {{year}} {{name}} <{{email}}>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the

0 comments on commit 4fb4ec3

Please sign in to comment.