Added new fillStepPlot option for dygraph
[dygraphs.git] / docs / ssi.py
CommitLineData
14403441
DV
1'''
2Shared code for ssi_server.py and ssi_expander.py.
3'''
4
5import re
6
7def InlineIncludes(path):
8 """Read a file, expanding <!-- #include --> statements."""
9 content = file(path).read()
10 content = re.sub(r'<!-- *#include *virtual=[\'"]([^\'"]+)[\'"] *-->',
11 lambda x: file(x.group(1)).read(),
12 content)
13 return content
14