Skip to content

Mustache fails if no template is passed in.#267

Closed
timothyandrew wants to merge 1 commit into
janl:masterfrom
timothyandrew:master
Closed

Mustache fails if no template is passed in.#267
timothyandrew wants to merge 1 commit into
janl:masterfrom
timothyandrew:master

Conversation

@timothyandrew
Copy link
Copy Markdown

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
Copy Markdown
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.

2 participants