Giter VIP home page Giter VIP logo

tabloid's Introduction

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

tabloid's People

Contributors

rubenbarroso avatar

Stargazers

Nitin Khanna avatar  avatar

Watchers

 avatar

tabloid's Issues

Post.read_content() should take into account the date of the cached file

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.

Extract code to check test scenarios

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.