Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
... ... @@ -1,6 +1,4 @@
1 1 dist
2 2 test-dest
3 3 example/log
4   -example/snaplets/fay/devel.cfg
5 4 example/snaplets/fay/js
6   -
9 README.md
Source Rendered
@@ -51,12 +51,17 @@ data App = App { _fay :: Snaplet Fay }
51 51 makeLens ''App
52 52 ```
53 53
54   -Place your Fay .hs files in snaplets/fay/src.
  54 +Run your application now.
55 55
56   -A snaplet config file will be generated in snaplets/fay/devel.cfg the
  56 +A snaplet config file will be generated at snaplets/fay/devel.cfg the
57 57 first time your application initializes the snaplet. The defaults are
58 58 the recommended ones for development.
59 59
  60 +Place your Fay .hs files in snaplets/fay/src. Note that a default
  61 +devel.cfg will not be created if you have already created the fay
  62 +directory, if this happens to you move snaplets/fay, start your
  63 +application, and then move the files back into snaplets/fay.
  64 +
60 65 Development Status
61 66 ------------------
62 67
2  TODO
@@ -8,7 +8,5 @@
8 8 * 404 when a fay file doesn't exist
9 9 * Document configuration
10 10 * Why does Paths_snaplet_fay produce a warning?
11   -* Why is the old snaplet.cfg copied?
12   -* js files are not placed in fay/ instead of fay/js/
13 11 * TODO has to recompile if dependencies (imports) changed, should perhaps skip compileAll mode?
14 12 * Log messages should print relative paths
0  example/log/access.log
No changes.
0  example/log/error.log
No changes.
4 example/snaplets/fay/devel.cfg
... ... @@ -0,0 +1,4 @@
  1 +# "CompileAll" or "CompileOnDemand".
  2 +compileMethod = "CompileOnDemand"
  3 +# Print more or less information.
  4 +verbose = on
1  snaplet-fay.cabal
@@ -38,7 +38,6 @@ library
38 38 other-modules:
39 39 Snap.Snaplet.Fay.Internal, Paths_snaplet_fay
40 40
41   -
42 41 build-depends:
43 42 base == 4.5.*,
44 43 bytestring == 0.9.*,

0 comments on commit a448f24

Please sign in to comment.
Something went wrong with that request. Please try again.