rekmus / silgy

Asynchronous HTTP(S) engine for C/C++ projects (deprecated, use Node++ instead)
https://nodepp.org
MIT License
79 stars 53 forks source link

How to return dynamic content web pages? #4

Open alexe100 opened 3 years ago

alexe100 commented 3 years ago

Does it supports html parsing and return parsed html pages?

rekmus commented 2 years ago

Hi, pardon me the late reply -- this project is really continued as Node++.

You can use OUT_SNIPPET and OUT_SNIPPET_MD like this:

OUT_SNIPPET("index1.html");  // first part of the page
int something = Get.from.somewhere();
OUT("<p>The result is %d</p>", something);
OUT_SNIPPET("index2.html"); // the next part