[][src]Module takeoff::templating

Extra templating functionality for tera.

Functions

tera_highlight_code

A filter for Tera to apply syntax highlighting to a string of code.

tera_json_dump

A filter for Tera that stringifies something to JSON, adds syntax highlighting and returns it inside a HTML code block. Use with Tera's safe filter to render HTML: json_dump(document) | safe.

tera_render_markdown

A filter for Tera to render some Markdown to HTML.