macro_rules! handlebars_response {
( $id:expr, $data:expr ) => { ... };
( $etag_if_none_match:expr, $id:expr, $data:expr ) => { ... };
}
Expand description
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 be minified.