rubenbarroso / tabloid Goto Github PK
View Code? Open in Web Editor NEWMy personal blogging system implemented in Python.
My personal blogging system implemented in Python.
Tabloid - Requirements ---------------------- - More than one post per day + Post metadata - Title - Category + Global metadata + Blog title + Blog image + Blog tagline + Author - Max number of posts per page + Filesystem structure blog/ index.cgi contents/ tabloid.config posts/ 2011_09_16_15_50/ images/ example.png files/ document.pdf post.config <--- metadata post.content <--- contents + Metadata - Use ConfigParser (standard lib) - General metadata [blog] title = "TICS" tagline = "Still deciding..." author = "Rubén Barroso" pagesize = 10 - Post metadata (post.config) [post] title = My first post category = friends + List of links to all categories (bottom of the blog as a cloud) - Post body format (post.content) - Probably a reduced set of Markdown (http://daringfireball.net/projects/markdown/basics) - headers - paragraphs - images - emphasis + lists + files - links - internal links + code - Pagination based on blog.pagesize - HTTP param ?page=X - Visualizing one specific post - HTTP param ?post=2011_09_16_15_50 + The previous URL generated also by <post id=""/> in a post body + RSS + Caching + Stress tests + Security test
Maybe place a cloud of categories at the bottom of the blog.
Ordered/Unordered lists.
If the cache file has a timestamp older than the contents file, it should not use the cache file for the rendering. The normal course of action would be to recreate the cache file with the new contents, but writing is generally disallowed to scripts served by Apache instances, for security reasons.
In every test method, we have the following:
for input, output in self.cases:
result = renderer.render(input)
self.assertEqual(output, result)
Maybe create a test base class that contains this method, or decorate the test methods or ... whatever it takes to not have this code duplicated everywhere.
My public www server has Python 2.4.
SyntaxError: Non-ASCII character '\xc3' in file ./index.cgi on line 77, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Simple template for presenting the blog.
Code blocks should be rendered as-is, just wrapped within ...
.
Similar to images, but for files (*.pdf, etc).
The browser (Chrome at least) does not show the rss icon in the URL bar.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.