This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit c18a9cb58e2c0065d35ea18f2db5e9677a603b8d
tree 9fb849aa6f413f8f47bd8dcafc87a83f87c8422c
parent 090347a4a7f620e96ad241928e7549b47666f75c
tree 9fb849aa6f413f8f47bd8dcafc87a83f87c8422c
parent 090347a4a7f620e96ad241928e7549b47666f75c
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
LICENSE | Sun Feb 22 18:18:52 -0800 2009 | |
| |
README | ||
| |
Rakefile | ||
| |
TODO | Sun Feb 22 18:18:52 -0800 2009 | |
| |
app/ | ||
| |
config/ | ||
| |
lib/ | ||
| |
public/ | ||
| |
spec/ | ||
| |
stubs/ | Sun Feb 22 18:18:52 -0800 2009 |
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.







