Skip to content

Amd module return values#488

Merged
kpdecker merged 2 commits intohandlebars-lang:masterfrom
tnwinc:amd-module-return-values
Apr 8, 2013
Merged

Amd module return values#488
kpdecker merged 2 commits intohandlebars-lang:masterfrom
tnwinc:amd-module-return-values

Conversation

@JamesMaroney
Copy link
Copy Markdown
Contributor

This is a rewrite of pull request #377

If building AMD module output and only one template/partial, return that compiled template as the module output. If building AMD module output and multiple templates/partials return the full hash of templates/partials.

return the compiled template from the AMD module
templates (or partials) hash from the AMD module
kpdecker added a commit that referenced this pull request Apr 8, 2013
@kpdecker kpdecker merged commit 4c35f89 into handlebars-lang:master Apr 8, 2013
@blessanm86
Copy link
Copy Markdown

This seems to cause an issue when we specify a folder path as the input instead of filenames. I used the command like
handlebars templates/>templates.js -a -e html
And get an output file with return after every template in the folder.

@kpdecker
Copy link
Copy Markdown
Collaborator

@Blessenm Can you file a new bug for the issue you are seeing now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants