summary refs log tree commit diff stats
path: root/tests/template/tdefault_nil.nim
blob: c5c372d9e7f2c4a56d7848e276dabcc7cb31735d (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): untyped =
  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