Skip to content

Commit 8c7bed0

Browse files
committed
for my weding page
1 parent a6c518b commit 8c7bed0

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# -*- coding:utf-8 -*-
2+
3+
from bottle import Bottle, run, template, TEMPLATE_PATH
4+
from bottle import get, post, request
5+
from bottle import static_file
6+
from bottle import error
7+
8+
DEBUG = True
9+
10+
app = Bottle()
11+
TEMPLATE_PATH.insert(0,'/cygdrive/e/code/git/python/bottle/web/wedding/template')
12+
13+
@app.route("/")
14+
def index():
15+
return template("index.html", name = "fuck")
16+
17+
run(app, host='localhost', port=8080, debug=DEBUG)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width,initial-scale=1">
8+
<meta name="google-site-verification" content="tM0rlxogcouz7qvIpvfvsV-ghBHbBAuwFdqDwYrs8Ew">
9+
<title>~Seven & Trytry's Wedding~</title>
10+
<meta name="title" content="褪墨・时间管理,个人提升,生活健康与习惯">
11+
<meta name="description" content="褪墨・时间管理是一个关注时间管理、GTD、个人提升、生活健康与习惯、学习方法和演讲技巧的网站。我们的目标是:把事情做到更好!">
12+
<meta name="author" content="褪墨・时间管理">
13+
<meta name="copyright" content="褪墨・时间管理(www.mifengtd.cn)版权所有,转载请注明来源、作者及原文链接。">
14+
<link rel="dns-prefetch" href="http://assets.mifengtd.cn/">
15+
<link rel="dns-prefetch" href="http://images.mifengtd.cn/">
16+
<link rel="dns-prefetch" href="http://www.google-analytics.com/">
17+
<link rel="dns-prefetch" href="http://mifengtd.disqus.com/">
18+
<link rel="dns-prefetch" href="http://v3.jiathis.com/">
19+
<link rel="dns-prefetch" href="http://widget.wumii.cn/">
20+
<link rel="canonical" href="http://www.mifengtd.cn/">
21+
<link rel="shortcut icon" href="http://assets.mifengtd.cn/favicon.ico">
22+
<link rel="alternate" type="application/rss+xml" title="订阅褪墨文章" href="http://www.mifengtd.cn/feed.xml">
23+
<!--[if lte IE 8]><link rel="stylesheet" href="http://assets.mifengtd.cn/assets/css/main-old-ie-20140919.min.css" /><![endif]--> <!--[if gt IE 8]><!-->
24+
<link rel="stylesheet" href="static/main-20140919.css"> <!--<![endif]--> <script src="static/count-data.js" async=""></script>
25+
</head>
26+
<body>
27+
Hello world, {{name}}
28+
</body>
29+
</html>

0 commit comments

Comments
 (0)