a simple python (cherrypy) blog server.
|
%!s(int64=4) %!d(string=hai) anos | |
---|---|---|
posts | %!s(int64=5) %!d(string=hai) anos | |
Configuration.py | %!s(int64=5) %!d(string=hai) anos | |
HomePage.html | %!s(int64=5) %!d(string=hai) anos | |
README.md | %!s(int64=5) %!d(string=hai) anos | |
license.md | %!s(int64=4) %!d(string=hai) anos | |
server.py | %!s(int64=5) %!d(string=hai) anos |
This is a simple python blog server using cherrypy.
You can use variables in html template like this [::variable name] and also you can change variables value in configuration
You can create repeatable template codes for posts and any other things like this:
[::foreach post]
<div class="post">
<h1 class="header">
[::header]
</h1>
<div class='postContent'>
[::content]
</div>
</div>
[::end]
foreach syntax: [::foreach source] in server codes source must return a dictionary of variables. (for more information see source code!)