htmlify
An ultra-basic, human-friendly templating system for doing CGI with Python for less
htmlify is powerful enough to drive small web projects, while lightweight enough that you don't feel like you're learning a whole new language. Here's how it works:
example.cgi |
templates/exampleTemplate.html |
---|---|
exampleTemplate = Template("exampleTemplate") |
|
The result:
http://localhost/example.cgi |
I like to eat spam I like to drink carrot juice) 2875 plus 3495 is equal to 6370 Concatenating "hello" and " there" gives hello there Adding the magic numbers gives 47 |