PJAX / XHR #185

Closed
daslicht opened this Issue Jul 31, 2013 · 1 comment

Comments

Projects
None yet
1 participant

Hello,
I like to return just the content without layout if a request is a XHR.

I tried it like this but it is not working:

- if(!xhr)
    include "layout.blade"

block content

how would you solve this ?

solved :

if(req.xhr) {
        res.render('index.blade', {title: 'HOME XHR ' });
    }else{
        res.render('layout.blade', {title: 'HOME', page: 'index.blade' });
    }

daslicht closed this Jul 31, 2013

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