Skip to content

Template settings override fix#848

Merged
hueniverse merged 1 commit intomasterfrom
unknown repository
May 13, 2013
Merged

Template settings override fix#848
hueniverse merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented May 13, 2013

Hi

I have encountered a problem with request.reply.view(template, context, options).
I basically want one handler to disable the global layout whether the request is ajax or not (fancybox stuff).

The commit purpose is to be able to do : request.reply.view('myTemplate', {foo: 'bar'}, { layout: !isAjax });.

I don't feel enough comfortable with hapi yet to write tests on the change, so I didn't, apologize. The pull request is just a fix I did to make it work locally.

@ghost ghost assigned hueniverse May 13, 2013
hueniverse pushed a commit that referenced this pull request May 13, 2013
Template settings override fix
@hueniverse hueniverse merged commit 111d193 into hapijs:master May 13, 2013
jmonster pushed a commit to jmonster/hapi that referenced this pull request Feb 10, 2014
Template settings override fix
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.

1 participant