Fix template dir for ResourceModule
Add throw exception to module constructor
Merge branch 'master' of github.com:abdollahpour/xweb