auth = AuthController()

@cherrypy.expose
@require()
def index(self):
    f = open('file.txt', 'r')
link = f.read()
f.close()
myText = 'Hello World'
html = (
    """
        <html>
            <body>
                <p>%s</p>          
                <a href="%s" ><img src="images/go_online.png"></a>
            </body>
        </html>
        """
     % (myText, link))
return html
index.exposed = True
How to pass python variable to html variable?