File: simplesubst.html

package info (click to toggle)
python-jtoolkit 0.7.8-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,436 kB
  • ctags: 2,536
  • sloc: python: 15,143; makefile: 20
file content (15 lines) | stat: -rw-r--r-- 763 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Simple Substitution</title>
</head>
<body>
 <h1>Simple Substitution</h1>
 <p>Today is <span tal:content="today">today</span></p>
 <p>here is a number: <span tal:content="number">number</span></p>
 <p>here is that number with some formatting: <span tal:content="python:format(number,'%05d')">number</span></p>
 <p>here is pi: <span tal:content="pi">number</span></p>
 <p>here is pi with a bit of rounding: <span tal:content="python:format(pi,'%.4f')">number</span></p>
</body>
</html>