Skip to content

OUT_SNIPPET_MD

Jurek Muszyński edited this page May 31, 2020 · 2 revisions

void OUT_SNIPPET_MD(const char *name)

Description

Renders HTML from the markdown snippet and writes the result to the output buffer. Snippet means content read from the file in snippets directory. It is a hybrid solution, allowing mixed – partly rendered, partly static – content in one server response. Maximum rendered HTML length is TMP_BUFSIZE bytes.

Rendering is done by silgy_render_md.

Returns

None

Example

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