amity/app/datatx.py
Micke Nordin 4dd92c0bdc
first commit
Signed-off-by: Micke Nordin <kano@sunet.se>
2025-06-24 13:27:40 +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')