Include Static Resources for Rocket Framework

This is a crate which provides macros static_resources_initialize! and static_response! to statically include files from your Rust project and make them be the HTTP response sources quickly.

Example

```rust

![feature(plugin)]

![plugin(rocket_codegen)]

[macrouse] extern crate lazystatic;

[macrouse] extern crate rocketincludestaticresources;

extern crate rocketetagifnonematch;

extern crate rocket;

staticresourcesinitialize!( "favicon", "included-static-resources/favicon.ico", "favicon-png", "included-static-resources/favicon-16.png" );

use rocketetagifnonematch::EtagIfNoneMatch;

use rocket::response::Response;

[get("/favicon.ico")]

fn favicon(etagifnonematch: EtagIfNoneMatch) -> Response<'static> { staticresponse!(etagifnone_match, "favicon") }

[get("/favicon.png")]

fn faviconpng() -> Response<'static> { staticresponse!("favicon-png") } ```

Refer to tests/favicon.rs to see the example completely.

License

MIT