Includeing Python in text files

Erik Max Francis max at alcyone.com
Mon May 22 17:04:54 EDT 2006


Paolo Pantaleo wrote:

> I am working on this:
> 
> I have  a text file, containig certain section in the form
> <?py
>   python code here
> py?>
> 
> I parse the text file and substitute the python code with its result
> [redirecting sys.stdin to a StringIO]. It something like php or
> embedded perl.
> 
> So my little toy works not bad, but I was wondering if such a feature
> already existed, if yes, can you point me out some links?

Another standalone templating system is EmPy:

	http://www.alcyone.com/software/empy/

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   What would physics look like without gravitation?
   -- Albert Einstein



More information about the Python-list mailing list