Macro tera_response

Source
macro_rules! tera_response {
    ( $cm:expr, $etag_if_none_match:expr, $name:expr ) => { ... };
    ( $cm:expr, $etag_if_none_match:expr, $name:expr, $data:expr ) => { ... };
    ( enable_minify $cm:expr, $etag_if_none_match:expr, $name:expr ) => { ... };
    ( enable_minify $cm:expr, $etag_if_none_match:expr, $name:expr, $data:expr ) => { ... };
    ( disable_minify $cm:expr, $etag_if_none_match:expr, $name:expr ) => { ... };
    ( disable_minify $cm:expr, $etag_if_none_match:expr, $name:expr, $data:expr ) => { ... };
    ( auto_minify $cm:expr, $etag_if_none_match:expr, $name:expr ) => { ... };
    ( auto_minify $cm:expr, $etag_if_none_match:expr, $name:expr, $data:expr ) => { ... };
}
Expand description

Used for retrieving and rendering the file you input through the macro tera_resources_initialize! as a TeraResponse instance with rendered HTML. When its respond_to method is called, three HTTP headers, Content-Type, Content-Length and Etag, will be automatically added, and the rendered HTML can optionally not be minified.