6cd9ffdc09facf061d0adebf7a336f2220b4d3bf — Thomas Landin 4 months ago 71297db
Fix a bug in buildCmd with missing output dir

The build command would break spectacularly if you happened to remove
the output directory (say with 'dtt clean'); this makes sure it doesn't

TODO: Re-generate $OUTPUT/css/style.css somehow
1 files changed, 3 insertions(+), 0 deletions(-)

M src/dtt.nim
M src/dtt.nim => src/dtt.nim +3 -0
@@ 125,6 125,9 @@ proc buildCmd() =
    mcontext = newContext(searchDirs = @[tmpldir])

  if not existsDir(outdir):

  loadMetaData(wd / "config.cfg", mcontext)

  for f in walkDirRec(condir, {pcFile, pcDir}, relative = true):