amity/app/datatx.py
Micke Nordin 60bc8247c3
first commit
Signed-off-by: Micke Nordin <kano@sunet.se>
2025-06-24 11:09:19 +02:00

10 lines
296 B
Python

import cherrypy
from jinja2 import Environment, FileSystemLoader
env = Environment(loader=FileSystemLoader('templates'))
class DataTx(object):
@cherrypy.expose
def index(self):
tmpl = env.get_template('index.html')
return tmpl.render(salutation='Hello', target='World')