git » pygen » master » tree

[master] / samples / 1 / sample.html.pg

<html>
#py title = "Title set dynamically"
#include hdr.pgh

<body>

To generate an html file from this, run <tt>pygen gen sample.html.pg</tt>.<br>

This is the main body<br>
#py print("One-line python statement")
<p>

#print "Shortcut to print<br>"
Some more static text.<p>

#py:
i = 1
l = ['a', 2, 'b']
print('Some variables:', i, l)
#endpy

The end!

</body>
</html>