Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

This branch is 71 commits behind Helabs:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db/migrate
lib
script
spec
.gitignore
.rspec
Gemfile
Gemfile.lock
MIT-LICENSE
README.mkdn
Rakefile
static_content.gemspec

README.mkdn

work in progress.

What is static_content?

static_content provides an easy way of defining static content in your application.

Installation

Add this line to your application's Gemfile:

gem 'static_content'

And then execute:

$ bundle

Or install it yourself as:

$ gem install static_content

After install the gem, you just need run the install generator:

$ rails g static_content:install

Usage

In your view, just add:

<%=c :sidebar_content, default: "Placeholder Sidebar Content" %>

Please note that a default option is required. If it hasn't been created, it will be created upon the first request.

This is intended to be used with admin panels such as Typus or ActiveAdmin.

This project rocks and uses MIT-LICENSE.

Something went wrong with that request. Please try again.