first commit
This commit is contained in:
31
www/index.pyp
Normal file
31
www/index.pyp
Normal file
@@ -0,0 +1,31 @@
|
||||
<py!>
|
||||
import os
|
||||
a = 0
|
||||
FILE = 'aval.txt'
|
||||
if os.path.exists(FILE):
|
||||
try:
|
||||
with open(FILE, "r") as f:
|
||||
a = int(f.read())
|
||||
except Exception:
|
||||
os.remove(FILE)
|
||||
with open(FILE, "w") as f:
|
||||
f.write(str(a + 1))
|
||||
</py!>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>pyd test </title>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
</head>
|
||||
<body class="font-sans flex items-center justify-center h-screen flex-col gap-5">
|
||||
|
||||
<h1 class="text-5xl font-black text-transparent bg-gradient-to-r from-green-500 to-orange-200 bg-clip-text p-2 block">welcome to PyWPR</h1>
|
||||
<div class="text-2xl">a php-like framework<br>get stated by removing <code>www</code> contents and creating <code>index.pyp</code>
|
||||
<br>or go to <a class="text-blue-600" href="./docs/">docs</a></div>
|
||||
<div class="flex gap-5 items-center text-xs">
|
||||
Renders <a href="./" class="text-red-500 font-bold"><p?>a+1</p?></a></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user