Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated README with some clarifications. Added some needed files to e…

…xample app
  • Loading branch information...
commit a448f2442f17b72702da53c8c3c44b0284525384 1 parent 80d494f
Adam Bergmark bergmark authored
2  .gitignore
View
@@ -1,6 +1,4 @@
dist
test-dest
example/log
-example/snaplets/fay/devel.cfg
example/snaplets/fay/js
-
9 README.md
View
@@ -51,12 +51,17 @@ data App = App { _fay :: Snaplet Fay }
makeLens ''App
```
-Place your Fay .hs files in snaplets/fay/src.
+Run your application now.
-A snaplet config file will be generated in snaplets/fay/devel.cfg the
+A snaplet config file will be generated at snaplets/fay/devel.cfg the
first time your application initializes the snaplet. The defaults are
the recommended ones for development.
+Place your Fay .hs files in snaplets/fay/src. Note that a default
+devel.cfg will not be created if you have already created the fay
+directory, if this happens to you move snaplets/fay, start your
+application, and then move the files back into snaplets/fay.
+
Development Status
------------------
2  TODO
View
@@ -8,7 +8,5 @@
* 404 when a fay file doesn't exist
* Document configuration
* Why does Paths_snaplet_fay produce a warning?
-* Why is the old snaplet.cfg copied?
-* js files are not placed in fay/ instead of fay/js/
* TODO has to recompile if dependencies (imports) changed, should perhaps skip compileAll mode?
* Log messages should print relative paths
0  example/log/access.log
View
No changes.
0  example/log/error.log
View
No changes.
4 example/snaplets/fay/devel.cfg
View
@@ -0,0 +1,4 @@
+# "CompileAll" or "CompileOnDemand".
+compileMethod = "CompileOnDemand"
+# Print more or less information.
+verbose = on
1  snaplet-fay.cabal
View
@@ -38,7 +38,6 @@ library
other-modules:
Snap.Snaplet.Fay.Internal, Paths_snaplet_fay
-
build-depends:
base == 4.5.*,
bytestring == 0.9.*,
Please sign in to comment.
Something went wrong with that request. Please try again.