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

How could I handle body, when I use res.render() pages? #37

Open
richzw opened this issue Jul 20, 2012 · 0 comments
Open

How could I handle body, when I use res.render() pages? #37

richzw opened this issue Jul 20, 2012 · 0 comments

Comments

@richzw
Copy link

richzw commented Jul 20, 2012

Server side code:

res.render('dashboard', {
      layout: 'layouts/default'
      , user: req.currentUser
}

api-easy test code

.get(urlRedir)
.expect(200)
.expect('get user infor', function(err, res, body){

in the body, there are whole html element. Is there any better method to read it?

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

No branches or pull requests

1 participant