You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
339 B
17 lines
339 B
import aiohttp
|
|
|
|
from aiohttp_jinja2 import template
|
|
|
|
|
|
|
|
@template('index.html')
|
|
async def index(request):
|
|
return {}
|
|
|
|
|
|
async def button_clicked(request):
|
|
data = await request.post()
|
|
text = data.get('text')
|
|
response_text = f'Вы ввели: {text}'
|
|
print(response_text)
|
|
return aiohttp.web.Response(text=response_text) |