diff options
-rwxr-xr-x | bin/handlebars | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/handlebars b/bin/handlebars index 1e46a35..d605e74 100755 --- a/bin/handlebars +++ b/bin/handlebars @@ -184,6 +184,13 @@ argv._.forEach(function(template) { // Output the content if (!argv.simple) { if (argv.amd) { + if(argv._.length > 1){ + if(argv.partial){ + output.push('return Handlebars.partials;\n'); + } else { + output.push('return templates;\n'); + } + } output.push('});'); } else if (!argv.commonjs) { output.push('})();'); |