Mercurial > genshi > genshi-test
diff examples/bench/clearsilver/template.cs @ 57:b387cf24d329
Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
author | cmlenz |
---|---|
date | Tue, 04 Jul 2006 18:19:22 +0000 |
parents | |
children | e9a3930f8823 |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/examples/bench/clearsilver/template.cs @@ -0,0 +1,22 @@ +<!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" lang="en"> + <head> + <title><?cs var:title ?></title> + </head> + <body> + <?cs include:"header.cs" ?> + + <h2>Loop</h2> + <?cs if:len(items) ?> + <ul> + <?cs each:item = items ?> + <li><?cs var:item ?></li> + <?cs /each ?> + </ul> + <?cs /if ?> + + <?cs include:"footer.cs" ?> + </body> +</html>