Tom Freeman writes: > def hx_include(filename): > return '<!--#include file="%s"-->' % filename Try: return open(filename).read() You may need to provide a directory, where to look for "filename". Dieter