[][src]Macro rocket_include_handlebars::handlebars_response

macro_rules! handlebars_response {
    ( $name:expr, $data:expr ) => { ... };
    ( enable_minify $name:expr, $data:expr ) => { ... };
    ( disable_minify $name:expr, $data:expr ) => { ... };
    ( auto_minify $name:expr, $data:expr ) => { ... };
}

Used for retrieving and rendering the file you input through the macro handlebars_resources_initialize! as a HandlebarsResponse 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.