web: simplify support files layout, look for them in ./.hledger/web/

This commit is contained in:
Simon Michael 2010-11-16 17:13:32 +00:00
parent 4e0df9daa8
commit 8dd52decb2
13 changed files with 4 additions and 4 deletions

View File

Before

Width:  |  Height:  |  Size: 309 B

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -79,13 +79,13 @@ robots_txt = "User-agent: *"
-- XXX hard-coded data directory path. This must be in your current dir
-- when you run or compile hledger-web.
datadir :: FilePath
datadir = "data"
datadir = ".hledger"
staticdir :: FilePath
staticdir = datadir ++ "/static"
staticdir = datadir ++ "/web"
templatesdir :: FilePath
templatesdir = datadir ++ "/templates"
templatesdir = datadir ++ "/web"
-- The following are compile-time macros. If the file paths they point to
-- don't exist, they will give an error (at compile time). In production

View File

@ -14,7 +14,7 @@ stability: alpha
tested-with: GHC==6.12
cabal-version: >= 1.6
build-type: Simple
data-dir: data
data-dir: .hledger
data-files:
static/style.css
static/hledger.js