2 Shared code for ssi_server.py and ssi_expander.py.
7 def 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(),