Function newHttpViewResponse

Synopsis

#include <lib/inc/drogon/HttpResponse.h>

static HttpResponsePtr newHttpViewResponse(const std::string &viewName, const HttpViewData &data=HttpViewData())

Description

Create a response that returns a page rendered by a view named viewName.

Parameters:

viewName - The name of the view

data - is the data displayed on the page.

Note
For more details, see the wiki pages, the "View" section.

Mentioned in

Source

Line 321 in lib/inc/drogon/HttpResponse.h.






Add Discussion as Guest

Log in to DocsForge