Skip to content

OUT_SNIPPET_MD

Jurek Muszyński edited this page Mar 28, 2024 · 3 revisions

void OUT_SNIPPET_MD(const char *name)

Description

Parses snippet (that is, file from snippets directory) as Markdown and writes the result to the output buffer. It is a hybrid solution, allowing mixed – partly rendered, partly static – content in one server response.

Returns

None

Example

void render_about()
{
    header();   // dynamically render header
    OUT_SNIPPET_MD("about.md");  // static part
    footer();   // dynamically render footer
}
Clone this wiki locally