Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mustache fails if no template is passed in. #267

Closed
wants to merge 1 commit into from

Conversation

timothyandrew
Copy link

Right now if Mustache.render is called without passing a template in, an error is thrown.

It would be more graceful to simply return an empty string if a template isn't passed in.

mjackson added a commit to mjackson/mustache.js that referenced this pull request Dec 6, 2012
@mjackson
Copy link
Contributor

mjackson commented Dec 6, 2012

I fixed this in a slightly different way than they way you suggest. Thanks for the pull request!

@mjackson mjackson closed this Dec 6, 2012
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.

None yet

2 participants