a simple python (cherrypy) blog server.
bsimjoo a77ef6ecbe به روزرسانی license.md | 4 years ago | |
---|---|---|
posts | 4 years ago | |
Configuration.py | 4 years ago | |
HomePage.html | 4 years ago | |
README.md | 4 years ago | |
license.md | 4 years ago | |
server.py | 4 years ago |
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!)