summary refs log tree commit diff stats
path: root/tests/template/tdefault_nil.nim
blob: 783f773888e440c596c232c0a2ef318b6e8d648d (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 = ""): untyped =
  if baseDir.len == 0:
    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