Simple filesystem web framework using Simplates. Inspired by Aspen. Using Plug
It is currently not ready for use in development or production.
You can use Hex, to install the package:
Add infuse
to your list of dependencies in mix.exs
:
def deps do
[{:infuse, "~> 0.2.0"}]
end
Ensure infuse
is started before your application:
def application do
[applications: [:infuse]]
end
Figure out what's next, because I have no idea!
config :infuse,
web_root: "example-www",
default_content_type: "text/html",
start_server: true,
start_observer: false
config :infuse, Infuse.HTTP.RequestHandler,
default_indicies: ['index.html', 'index.json', 'index',
'index.html.spt', 'index.json.spt', 'index.spt']
Since I develop on Windows I find it sometimes helpful to test on linux, so I use:
docker build -t infuse .
docker run -p 8101:8101 infuse
Entire inspiration and design is from https://github.com/AspenWeb/aspen.py
Logo was made from https://pixabay.com/p-146337/?no_redirect. I cut out the jar top and the other jar to form the logo.