Publish your data with ERB and markdown
I will show you how to write a powerful and flexible publishing system by combining the power of ruby templates (ERB) and Markdown standard syntax in just 50 lines of code. The idea is to store your data in simple text files thanks to Markdown and use a template engine to present them in the format you want. Also, you can use the ruby power inside your markdown files for free! Check the source code for more information and examples.
Comments
There are more flexible, feature rich ways to do this with static site generators. e.g. nanoc, jekyll, … to name a few.
Post a comment