snapframework/snap — Issue #23: snaplet.cfg is expected in the root directory and not at resources/snaplet.cfg as explained by the tutorial
Author: ozataman
Created: 2012-01-31 16:28:16+00:00
State: open

Our tutorial on http://snapframework.com/docs/tutorials/snaplets-tutorial indicates snaplet.cfg should reside in resources/ folder.

However, if put there, it does not currently get read properly. Moving it to the root folder, as stated in Snap.Snaplet source code fixes the problem:

> snaplet
> |-- snaplet.cabal
> |-- log/
> |-- src/
> ------------------------
> |-- db.cfg
> |-- snaplet.cfg
> |-- public/
> |-- stylesheets/
> |-- images/
> |-- js/
> |-- snaplets
> |-- subsnaplet1/
> |-- subsnaplet2/
> |-- templates/

Either the code or the documentation should be updated to fix the issue.

I am pretty neutral about which way to go, but seem to be slightly in favor of the version pasted above from source code. config files and sub-snaplets don't quite match "resources" in my mind, which is somewhat reserved for templates, css, js, and other similar assets.