~kungtotte/dtt

9651e758b226e061a1c55a48f8dbb12bf8e029d1 — Thomas Landin 3 days ago f2aa324 master
Move back to markdown, --gc:arc is too much work

I can't be bothered at this point. Everything works fine without
--gc:arc so I'll stick to that until deps are updated accordingly.
3 files changed, 5 insertions(+), 3 deletions(-)

M dtt.nimble
M nim.cfg
M src/utils.nim
M dtt.nimble => dtt.nimble +1 -1
@@ 14,7 14,7 @@ binDir        = "bin"

requires "nim >= 1.0.4"
requires "argparse"
requires "slimdown"
requires "https://github.com/soasme/nim-markdown >= 0.8"
requires "https://github.com/soasme/nim-mustache >= 0.2"

task make_doc, "Generate man page(s)":

M nim.cfg => nim.cfg +2 -0
@@ 1,3 1,5 @@
--path="$home/.nimble/pkgs/argparse-#master/src/"
--path="$home/.nimble/pkgs/mustache-0.2.1/src/"
--path="$home/.nimble/pkgs/markdown-0.8.1/src/"
--excludePath="/opt/nimble/pkgs/"
--outdir:bin

M src/utils.nim => src/utils.nim +2 -2
@@ 2,7 2,7 @@ import os, strutils, strformat
import strscans
import unicode, tables, times

import slimdown
import markdown
import mustache

const


@@ 36,7 36,7 @@ proc loadTemplate*(name: string = "page", dir: string = "templates"): string =
  return readFile(dir / name & ".mustache")

proc renderTemplate*(context: Context, md: string, tmpl: string): string =
  context["content"] = slimdown.md(md)
  context["content"] = markdown(md)
  result = tmpl.render(context)

func formatPaddedDate(year, month, day: int): string =