Web server with recipe index page
- Add Roux.Server: WAI application using wai+warp directly - Scans .cook files from recipe directory on startup - GET / → HTML index page listing all recipes - Other routes → 404 - Add Roux.RecipeIndex: directory scanning and recipe parsing - scanRecipes: lists .cook files, parses each, extracts titles - Falls back to filename when metadata title is absent - Add Roux.Html: blaze-html rendering with Pico CSS - indexPage: renders recipe list with links - urlEncode: percent-encodes filenames for URLs - Update Roux.hs: re-exports Server.app and Types - Add filepath to dependencies
This commit is contained in:
@@ -31,6 +31,7 @@ dependencies:
|
||||
- bytestring
|
||||
- containers
|
||||
- directory
|
||||
- filepath
|
||||
- http-types
|
||||
- optparse-applicative
|
||||
- parsec
|
||||
|
||||
Reference in New Issue
Block a user