Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #16 from stephenmathieson/update-year

Updating 'year' in Readme.md to the current year
commit 4fb4ec3fd43ebc83796f972fa52d6ba14c08fbf3 2 parents d3570c7 + 24f15e4
TJ Holowaychuk authored
6 bin/ngen
@@ -67,7 +67,9 @@ function Template(name) {
67 67 this.path = templates + '/' + name;
68 68 this.contentPath = this.path + '/content';
69 69 this.mod = require(this.path);
70   - this.values = {};
  70 + this.values = {
  71 + year: new Date().getFullYear()
  72 + };
71 73 this.directories = {};
72 74 }
73 75
@@ -121,7 +123,7 @@ Template.prototype.init = function(dest){
121 123 Template.prototype.__defineGetter__('files', function(){
122 124 var self = this
123 125 , files = [];
124   -
  126 +
125 127 (function next(dir) {
126 128 fs.readdirSync(dir).forEach(function(file){
127 129 files.push(file = dir + '/' + file);
2  templates/default/content/Readme.md
Source Rendered
@@ -7,7 +7,7 @@
7 7
8 8 (The MIT License)
9 9
10   -Copyright (c) 2012 {{name}} <{{email}}>
  10 +Copyright (c) {{year}} {{name}} <{{email}}>
11 11
12 12 Permission is hereby granted, free of charge, to any person obtaining
13 13 a copy of this software and associated documentation files (the
2  templates/git/content/Readme.md
Source Rendered
@@ -7,7 +7,7 @@
7 7
8 8 (The MIT License)
9 9
10   -Copyright (c) 2011 {{name}} <{{email}}>
  10 +Copyright (c) {{year}} {{name}} <{{email}}>
11 11
12 12 Permission is hereby granted, free of charge, to any person obtaining
13 13 a copy of this software and associated documentation files (the

0 comments on commit 4fb4ec3

Please sign in to comment.
Something went wrong with that request. Please try again.