Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix name of config files in snaplet tutorial

  • Loading branch information...
commit 77883ea707ed72a51d1d602ed2fcbf35f16bf9ab 1 parent b0059ba
Doug Beardsley mightybyte authored
8 snaplets/heist/templates/docs/tutorials/snaplets-tutorial.lhs
@@ -283,7 +283,7 @@ into the directory of any project that uses it. Here's an example of what a
283 283 snaplet filesystem layout might look like:
284 284
285 285 foosnaplet/
286   - |-- *snaplet.cfg*
  286 + |-- *devel.cfg*
287 287 |-- db.cfg
288 288 |-- public/
289 289 |-- stylesheets/
@@ -296,13 +296,13 @@ snaplet filesystem layout might look like:
296 296 |-- subsnaplet2/
297 297
298 298 Only the starred items are actually enforced by current code, but we want to
299   -establish the others as a convention. The file snaplet.cfg is automatically
  299 +establish the others as a convention. The file devel.cfg is automatically
300 300 read by the snaplet infrastructure. It is available to you via the
301 301 `getSnapletUserConfig` function. Config files use the format defined by Bryan
302 302 O'Sullivan's excellent [configurator
303 303 package](http://hackage.haskell.org/package/configurator). In this example,
304 304 the user has chosen to put db config items in a separate file and use
305   -configurator's import functionality to include it in snaplet.cfg. If
  305 +configurator's import functionality to include it in devel.cfg. If
306 306 foosnaplet uses `nestSnaplet` or `embedSnaplet` to include any other snaplets,
307 307 then filesystem data defined by those snaplets will be included in
308 308 subdirectories under the `snaplets/` directory.
@@ -346,7 +346,7 @@ make everything work, you have to tell Cabal about your data files by
346 346 including a section like the following in snaplet-killerapp.cabal:
347 347
348 348 data-files:
349   - resources/snaplet.cfg,
  349 + resources/devel.cfg,
350 350 resources/public/stylesheets/style.css,
351 351 resources/snaplets/heist/templates/page.tpl
352 352

0 comments on commit 77883ea

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