Closed CrowdHailer closed 7 years ago
tests are now passing. The API is somewhat different to what was suggested above. The most terse is now as follows.
defmodule SingleFile do
require Raxx.Static
dir = "./static"
Raxx.Static.serve_dir(dir)
end
Implement a Raxx endpoint that serves a folder of static content.
The server reads all the content at compile time. It should assume a bunch of default.
The current tests fail once a second file is included. in this case site.css it seams that the pattern match is not being unquoted as I expected. I am doubly confused because the match is not catching all requests because the 404 test is passing.
Cloning the static branch at this point has one failing test this is what needs fixing before merging.