Sha256: b8fc6e3936f5a4405fdcd8c69ec7b4a16bcde91851dcfc39f7a28dcbb7668aaf
Contents?: true
Size: 1.33 KB
Versions: 3
Compression:
Stored size: 1.33 KB
Contents
# Rack::Blogengine Rack Middleware to serve a simple blog ## Installation Add this line to your application's Gemfile: gem 'rack-blogengine' And then execute: $ bundle Or install it yourself as: $ gem install rack-blogengine ## Usage Create a targetfolder where your Styling & Content is placed. ### Structure `targetfolder/layout` - save your layout.html and style.css in this folder `targetfolder/images` - your images will be served from this folder (http://pathtoapp.tld/images) `targetfolder/test.content` - your available blog entries matches to the .content files, each .content file is a blog entry ### Layout In the layout.html you use {title} and {content} which will then be populated with the values from each .content file Example: ```html <!DOCTYPE html> <html> <head> <title>{title}</title> </head> <body> <h1>{title}</h1> <div> {content} </div> </body> </html> ``` ### Content The Content files (.content) includes your content `[path]` - this will be your access path to your blog entry `[title]` - the title for your article `[content]` - your content ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rack-blogengine-0.0.3 | README.md |
rack-blogengine-0.0.2 | README.md |
rack-blogengine-0.0.1 | README.md |