Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: twitter/hogan.js
...
head fork: twitter/hogan.js
  • 3 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 7 additions and 3 deletions.
  1. +7 −3 tools/release.js
View
10 tools/release.js
@@ -64,6 +64,10 @@ wrappers.forEach(function(wrapper) {
});
// Also release Hogan.Template on its own.
-var templateTarget = distPath + 'template-' + version + '.js';
-fs.writeFileSync(templateTarget, read(__dirname + '/../lib/template.js'));
-uglify(templateTarget, distPath + 'template-' + version + '.min.js');
+wrappers.forEach(function(wrapper) {
+ var tail = path.basename(wrapper, '.mustache');
+ var target = distPath + 'hogan.template-' + version + '.' + tail;
+ var uglified = distPath + 'hogan.template-' + version + '.min.' + tail;
+ fs.writeFileSync(target, Hogan.compile(read(wrapper)).render({template: context.template}));
+ uglify(target, uglified);
+});

No commit comments for this range

Something went wrong with that request. Please try again.