This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
md-pdf/md_pdf/build/md.py

11 lines
225 B
Python
Raw Normal View History

2017-03-27 09:17:49 +01:00
import glob
def get_files_content(filenames):
for filename in filenames:
with open(filename) as f:
yield f.read()
2017-03-28 09:04:02 +01:00
def read_files(filenames):
2017-03-27 09:17:49 +01:00
return '\n'.join(list(get_files_content(filenames)))