Michael-F-Bryan / include_dir

The logical evolution of the include_str macro for embedding a directory tree into your binary.
https://michael-f-bryan.github.io/include_dir
MIT License
319 stars 36 forks source link

Feature for leading slash? #75

Open adamspofford-dfinity opened 2 years ago

adamspofford-dfinity commented 2 years ago

It would be great if you could modify the invocation slightly, say by putting another / outside the string literal, to have all the paths be /{path} instead of just {path}. That way I don't have to do any back-and-forth with string transforms when serving a file for an HTTP path.