Embarrassed to ask a newbie question, but I'm stumped. I can see how these
three files below interact, but I've not been about to add a simple python
program to Home.html.
Do you just add the following to Home.html? I'm sure there are egregious
Python errors below.
Thank you so much for getting me out of this sand pit.
$word = "JeffreySamuel"
$word = word.upper()
$for letter in word:
<h2>(letter)</h2><br />
-----------------------------
*Controller.py*
import web
urls = (
'/', 'home',
'/register', 'register'
)
render = web.template.render("Views/Templates", base="MainLayout")
app = web.application(urls, globals())
# Classes/Routes
class home:
def GET(self):
return render.Home()
class register:
def GET(self):
return render.Register()
if __name__ == "__main__":
app.run()
-----------------------------
*MainLayout.html*
$def with (page)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Artist Files Directory</title>
<link rel="stylesheet" href="static/css/swag.css" />
</head>
<body>
<div id="menu">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/discover">Discover</a></li>
<li><a href="/profile">Profile</a></li>
<li><a href="/settings">Settings</a></li>
<li><a href="/register">Register</a></li>
</ul>
</div>
$:page
</body>
</html>
-----------------------------
*Home.html*
<h1>Testing</h1>
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/webpy/d12368fd-fe99-454b-a224-65d9d1f24052%40googlegroups.com.