summary refs log tree commit diff stats
path: root/tests/template/tdefault_nil.nim
blob: 891166306dd834ff6e8adfa040935733e6676428 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# bug #2629
import sequtils, os

template glob_rst(basedir: string = nil): expr =
  if baseDir.isNil:
    to_seq(walk_files("*.rst"))
  else:
    to_seq(walk_files(basedir/"*.rst"))

let
  rst_files = concat(glob_rst(), glob_rst("docs"))

when isMainModule: echo rst_files