diff --git a/distribusi/distribusi.py b/distribusi/distribusi.py
index 7f2b18e..8e86592 100644
--- a/distribusi/distribusi.py
+++ b/distribusi/distribusi.py
@@ -146,7 +146,15 @@ def render_dir(args, root):
# what types of text files to expand
a = '{}'.format(name, open(full_path).read())
elif subtype in CODE_TYPES or name.endswith('.txt'):
- a = "
" + open(full_path).read() + "
"
+ #check - time string
+ m = PATTERN_TSTR.search(name)
+ tstring = ""
+ rename = name
+ if m:
+ tstring = m.group('tstring')
+ rename = m.group('name')
+ a = "
" + open(full_path).read() + "
"
+ a = a.replace('{}', tstring)
else:
subtype = subtype + ' unkown-file'
a = "{}".format(relative_path, caption)
@@ -243,7 +251,16 @@ def distribusify(args, directory): # noqa
# what types of text files to expand
a = '{}'.format(name, open(full_path).read())
elif subtype in CODE_TYPES or name.endswith('.txt'):
- a = "
" + open(full_path).read() + "
"
+ #check - time string
+ m = PATTERN_TSTR.search(name)
+ tstring = ""
+ rename = name
+ if m:
+ tstring = m.group('tstring')
+ rename = m.group('name')
+ a = "