Macro silkenweb_inline_html::html_file

source ·
html_file!() { /* proc-macro */ }
Expand description

Include an HTML snippet from a file.

This takes a string literal as a filename, parses the contents of the file and puts the resulting expression into a funcion. The function name is derived from the filename by replacing non alphanumeric characters with an _.

See examples/inline-html for a usage example.

See silkenweb_parse for details on the parsing.