ezwebframe icon indicating copy to clipboard operation
ezwebframe copied to clipboard

Fixes in the starting of dependencies and loading of index.html from priv_dir

Open nisbus opened this issue 13 years ago • 1 comments

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.

nisbus avatar Dec 30 '12 21:12 nisbus

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.

nisbus avatar Dec 31 '12 01:12 nisbus