1  | #模版的扩展名随意  | 
file: bottle模版嵌套A.tpl 1
2
3
4
5
6
7
8
9
10
11
12
<html>
<head>
	<!--用中文必须声明编码-->
	<meta charset='utf-8'>
	<title>	标签名</title>
	<h2>标题	</h2>
</head>
<body>
% include('bottle模版被嵌套B.tpl')
</body>
</html>
file: bottle模版嵌套B.tpl
1  | <p>hello word</p>  | 
转载请注明来源 https://tianweiye.github.io