【发布时间】:2013-06-27 10:23:06
【问题描述】:
我已经使用 webpy 建立了一个网站。 我的主页名为 layout.html。我将 foo1.html 加载到布局中
$def with (content)
<html>
<head>
<title>Foo</title>
</head>
<body>
$:content
</body>
</html>
而且里面的内容是foo1.html
<div> Hello </div>
是否可以更改 foo1.html 以同时加载另一个网页:
$def with (secondarycontent)
<div> $:secondarycontent </div>
【问题讨论】:
标签: python html templates web.py nested