svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2666
--- /dev/null
+<%inherit file="skeleton.mako" />
+
+Hello world!
+
+<%def name="title()">
+helloworld
+</%def>
-#from functions import functions
-#extends functions
-
-#def full_body
+<%page expression_filter="h"/>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
-<head><title>$title — XVM</title>
+<head><title>${self.title()} — XVM</title>
<link href="static/favicon.ico" type="image/x-icon" rel="shortcut icon">
<link rel="stylesheet" href="static/style.css" type="text/css" />
<link rel="stylesheet" href="static/layout.css" type="text/css" media="screen" />
<link href="static/favicon.ico" type="image/x-icon" rel="shortcut icon">
<link rel="stylesheet" href="static/style.css" type="text/css" />
<link rel="stylesheet" href="static/layout.css" type="text/css" media="screen" />
</script>
</head>
<body id="body"
</script>
</head>
<body id="body"
-#if hasattr($self, 'pageclass'):
- class="$pageclass"
-#end if
+% if hasattr(self.attr, 'pageclass'):
+ class="${self.attr.pageclass}"
+% endif
<div>
<p>We are in the process of modifying the service. Things likely will not work.</p>
</div>
<div>
<p>We are in the process of modifying the service. Things likely will not work.</p>
</div>
+% if error_text is not UNDEFINED:
-#if $varExists('error_text')
-<p>STDERR:</p><pre>$error_text</pre>
-#end if
+<p>STDERR:</p><pre>${error_text}</pre>
-#if not $varExists('simple') or not $simple
-<p class="loggedin">Welcome, <span class="name">$user</span>.</p>
+% if not simple:
+% if user:
+<p class="loggedin">Welcome, <span class="name">${user}</span>.</p>
+% endif
<ul class="navigation">
<li><a href="list">List</a></li>
<ul class="navigation">
<li><a href="list">List</a></li>
-#if $varExists('machine')
-<li><a href="info?machine_id=$machine.machine_id">Info</a></li>
-<li><a href="vnc?machine_id=$machine.machine_id">Console</a></li>
-#end if
+% if machine:
+<li><a href="info?machine_id=${machine.machine_id}">Info</a></li>
+<li><a href="vnc?machine_id=${machine.machine_id}">Console</a></li>
+% endif
<li><a href="help">Help</a></li>
</ul>
<li><a href="help">Help</a></li>
</ul>
<div id="result" class="result">
<div id="result" class="result">
-#if $varExists('result')
-$result
-#end if
+% if result:
+${result}
+% endif
-#if not $varExists('simple') or not $simple
-<h1>$title — XVM</h1>
-#end if
-#filter None
-$body
-#end filter
-#if not $varExists('simple') or not $simple
+% if not simple:
+<h1>${self.title()} — XVM</h1>
+% endif
+${next.body()}
+% if not simple:
<hr />
Questions? Contact <a href="mailto:xvm@mit.edu">xvm@mit.edu</a>.
<hr />
Questions? Contact <a href="mailto:xvm@mit.edu">xvm@mit.edu</a>.
+
+<%def name="title()">
+XVM
+</%def>