Examples/modpython.py

Tue, 22 Oct 2019 19:56:56 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 22 Oct 2019 19:56:56 +0200
changeset 7301
6df711503ec0
parent 0
de9c2efb9d02
permissions
-rw-r--r--

PreviewerHTML: enhanced the Markdown previewer by using the PyMdown extensions, if they are available and have been enabled.

from mod_python import apache

def handler(req):
    req.content_type = "text/plain"
    req.send_http_header()
    req.write("Hello World!\n")

    return apache.OK

eric ide

mercurial