-----尚未解决,望有大神不吝赐教-----
这是我的代码,
$def with(content)
<html>
<head>
<title>Gothons From Planet Percal #25</title>
<style type="text/css">
body{background-image:url(images\bg.jpg);}
</style>
</head>
<body>
<p>This is a paragraph for test.</p>
$:content
<p style="color:red">This is another paragraph</p>
</body>
</html>
本意是把这个作为网页的模板,把content加入到模板中,利用了一张图片想要作为背景
并且使用webpy的框架提供服务,下面是代码
import web
urls = (
'/hello', 'Index'
)
app = web.application(urls, globals()) #web.application
#render = web.template.render('dgfp_31_hq/') #search the directory 'templates', if there is a index, the following block can call it
render = web.template.render('templates/', base="la