[Grok-dev] grokproject and default index.pt
Peter Bengtsson
peter at fry-it.com
Mon May 26 19:35:50 EDT 2008
When you start a grokproject it sets up index.pt which sucks and
you're encouraged to immediately get that working.
However, I think we can win a couple of quick brownie points by making
index.pt a bit better. Let's make it at least XHTML with a decent
doctype (I suggest XHTML Transitional) and properly indented tags.
Here's the current one:
--------------------------------------------------------------------
<html>
<head>
</head>
<body>
<h1>Congratulations!</h1>
<p>Your Grok application is up and running.
Edit <code>${package}/app_templates/index.pt</code> to change
this page.</p>
</body>
</html>
--------------------------------------------------------------------
I suggest we change this to:
--------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Congratulations! Your Grok application is up and running</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
body { font-family:sans-serif; }
</style>
</head>
<body>
<h1>Congratulations!</h1>
<p>Your Grok application is up and running.
Edit <code>${package}/app_templates/index.pt</code> to change
this page.</p>
</body>
</html>
--------------------------------------------------------------------
It's not hugely important but will send a nice message to newbies.
Let me know what you think. I'm happy to commit it but won't unless
people like the idea.
This is what Django defaults to:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
...lots of style but also quite messy HTML...
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
More information about the Grok-dev
mailing list