File: mytemplate.jinja2

package info (click to toggle)
python-pyramid 1.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,112 kB
  • ctags: 8,169
  • sloc: python: 41,764; makefile: 111; sh: 17
file content (90 lines) | stat: -rw-r--r-- 3,420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>The Pyramid Web Framework</title>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
	<meta name="keywords" content="python web application" />
	<meta name="description" content="pyramid web application" />
	<link rel="shortcut icon" href="{{request.application_url}}/static/favicon.ico" />
	<link rel="stylesheet" href="{{request.application_url}}/static/pylons.css" type="text/css" media="screen" charset="utf-8" />
	<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Nobile:regular,italic,bold,bolditalic&amp;subset=latin" type="text/css" media="screen" charset="utf-8" />
	<!--[if !IE 7]>
	<style type="text/css">
		#wrap {display:table;height:100%}
    </style>
	<![endif]-->
    <style type="text/css">
        .locale { text-align: center; }
        .locale-name { font-weight: bold; }
    </style>
</head>
<body>
	<div id="wrap">
		<div id="header">
			<div class="header">The Pyramid Web Framework</div>
		</div>
		<div id="top">
			<div class="top align-center">
				<img src="{{request.application_url}}/static/logo.png" width="300" height="80" alt="Logo"/>
				<p class="app-welcome">
					Welcome to <span class="app-name">{{project}}</span>, an application generated by<br/>
					the Pyramid Web Framework.
				</p>
			</div>
		</div>
		<div id="bottom">
          <div class="locale">
            <h2>{% trans %}Hello!{% endtrans %}</h2>
          <!-- Start Sphinx Include 1 -->
          <p>Counter: {{ request.session.counter }}</p>
          <!-- End Sphinx Include 1 -->
            <p>Request performed with <span class="locale-name">{{ request.locale_name }}</span> locale.</p>
          </div>
			<div class="bottom">
				<div id="left" class="align-right">
					<h3>Search Pyramid documentation</h3>
					<form method="get" action="http://docs.pylonshq.com/pyramid/dev/search.html">
		      			<input type="text" id="q" name="q" value="" />
		      			<input type="submit" id="x" value="Search" />
		  			</form>
				</div>
				<div id="right" class="align-left">
					<h3>Pyramid links</h3>
					<ul class="links">
						<li>
							<a href="http://pylonshq.com">Pylons Website</a>
						</li>
						<li>
							<a href="http://docs.pylonshq.com/">The Pylons Project Documentation</a>
						</li>
						<li>
							<a href="http://docs.pylonshq.com/pyramid/dev/#narrative-documentation">Narrative Documentation</a>
						</li>
						<li>
							<a href="http://docs.pylonshq.com/pyramid/dev/#api-documentation">API Documentation</a>
						</li>
						<li>
							<a href="http://docs.pylonshq.com/pyramid/dev/#tutorials">Tutorials</a>
						</li>
						<li>
							<a href="http://docs.pylonshq.com/pyramid/dev/#change-history">Change History</a>
						</li>
						<li>
							<a href="http://docs.pylonshq.com/pyramid/dev/#sample-applications">Sample Applications</a>
						</li>
						<li>
							<a href="http://docs.pylonshq.com/pyramid/dev/#support-and-development">Support and Development</a>
						</li>
						<li>
							<a href="irc://irc.freenode.net#pyramid">IRC Channel</a>
						</li>
		  			</ul>
				</div>
			</div>
		</div>
	</div>
	<div id="footer">
		<div class="footer">© Copyright 2008-2010, Agendaless Consulting.</div>
	</div>
</body>
</html>