ezwebframe
ezwebframe copied to clipboard
Fixes in the starting of dependencies and loading of index.html from priv_dir
The commit's are a bit of a mess (a rebase gone haywire) but I think the changes are good.
I was testing this for my own site (not running there yet) and I found that when reltool included crypto, ezwebframe would crash since it would already have been started.
Also I created my own application using ezwebframe as a dependency and put all my html/css/js into the priv_dir. Calling for index.html didn't work that way but it works with these changes.
This is my home.erl dispatch method:
dispatch('/') -> Dir = code:priv_dir(eznisbus), Dir++"index.html"; dispatch(F) -> Dir = code:priv_dir(eznisbus), Dir++ F.