mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 10:09:36 +02:00
PageCompiler: merged changes from internal and macchina versions
This commit is contained in:
@@ -263,11 +263,11 @@ void CodeWriter::writeHandler(std::ostream& ostr)
|
||||
ostr << "void " << _class << "::handleRequest(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response)\n";
|
||||
ostr << "{\n";
|
||||
writeResponse(ostr);
|
||||
writeSession(ostr);
|
||||
if (_page.has("page.precondition"))
|
||||
{
|
||||
ostr << "\tif (!(" << _page.get("page.precondition") << ")) return;\n\n";
|
||||
}
|
||||
writeSession(ostr);
|
||||
writeForm(ostr);
|
||||
ostr << _page.preHandler().str();
|
||||
writeContent(ostr);
|
||||
|
||||
Reference in New Issue
Block a user