public
Description: Merb Slice to transform Webby in a wysiwyg CMS
Homepage: http://legodata.com
Clone URL: git://github.com/alx/webbastic.git
alx (author)
Fri Mar 13 05:51:20 -0700 2009
commit  c18a9cb58e2c0065d35ea18f2db5e9677a603b8d
tree    9fb849aa6f413f8f47bd8dcafc87a83f87c8422c
parent  090347a4a7f620e96ad241928e7549b47666f75c
name age message
file .gitignore Loading commit data...
file LICENSE Sun Feb 22 18:18:52 -0800 2009 first commit [alx]
file README
file Rakefile
file TODO Sun Feb 22 18:18:52 -0800 2009 first commit [alx]
directory app/
directory config/
directory lib/
directory public/
directory spec/
directory stubs/ Sun Feb 22 18:18:52 -0800 2009 first commit [alx]
README
Webbastic
=========

A slice for the Merb framework.

------------------------------------------------------------------------------
   

To see all available tasks for Webbastic run:

rake -T slices:webbastic

------------------------------------------------------------------------------

Instructions for installation:

file: config/init.rb

# add the slice as a regular dependency

dependency 'webbastic'

# if needed, configure which slices to load and in which order

Merb::Plugins.config[:merb_slices] = { :queue => ["Webbastic", ...] }

# optionally configure the plugins in a before_app_loads callback

Merb::BootLoader.before_app_loads do
  
  Merb::Slices::config[:webbastic][:option] = value
  
end

file: config/router.rb

# example: /webbastic/:controller/:action/:id

add_slice(:Webbastic)

# example: /:lang/:controller/:action/:id

add_slice(:Webbastic, :path => ':lang')

# example: /:controller/:action/:id

slice(:Webbastic)

Normally you should also run the following rake task:

rake slices:webbastic:install

------------------------------------------------------------------------------

You can put your application-level overrides in:

host-app/slices/webbastic/app - controllers, models, views ...

Templates are located in this order:

1. host-app/slices/webbastic/app/views/*
2. gems/webbastic/app/views/*
3. host-app/app/views/*

You can use the host application's layout by configuring the
webbastic slice in a before_app_loads block:

Merb::Slices.config[:webbastic] = { :layout => :application }

By default :webbastic is used. If you need to override
stylesheets or javascripts, just specify your own files in your layout
instead/in addition to the ones supplied (if any) in 
host-app/public/slices/webbastic.

In any case don't edit those files directly as they may be clobbered any time
rake webbastic:install is run.