Skip to content

alberto/rublo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rublo is a very simplistic blog engine. It lets you write posts in yaml and generate them as html.

I created rublo as a response to Enrique Comba’s (@ecomba) open challenge to anyone who wanted to become his apprentice (more info at ecomba.org/blog/2011/05/15/the-apprentice/ )

It is written in ruby, without using any external gem or library, in a TDD manner and without using Test::Unit, as per Enrique’s whises :D

You can create a new post by editing the post.yaml file and adding your info there.

You must at least add a ‘title’ key. You can declare site wide vars (like your blog title) in the settings.yaml file

rublo uses a rudimentary template system. All you can do is declare vars which will get substituted by your posts fields.

Variables are declared using the format ##field##. (e.g. ##title##)

There are 3 templates:

  • post.rhtml for the post page

  • index.rhtml for the index page

  • posts.rhtml partial template used to create the index page

Edit them at your own will (and risk).

After editing the post.yaml file, you can create your new post by running:

ruby bin/add_post.rb

You can run the tests with: ruby test/test_runner.rb

Do you like rublo? Tell @ecomba how awesome my blog is and how I deserve to be his apprentice. Do you think it is horrible? Then tell @ecomba how much I am in need for a mentor.

About

The humble ruby blog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages