Skip to content

A wrapper around the Camping microframework and Mongrel that allows for a clean, effective way of writing and serving lightweight OpenSocial widgets

Notifications You must be signed in to change notification settings

skyfallsin/openly_sociable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

OpenlySociable > Micro Version
==============================

This is a wrapper around the Camping microframework that allows for a clean, effective way of writing OpenSocial widgets. 
Check out http://code.whytheluckystiff.net/camping/ for more details regarding the way Camping apps are written. 
Also check out the examples folder for self-contained OpenlySociable Micro apps.

Here is the simplest OpenlySociable widget you can write:

require 'openly_sociable_micro'
OpenSocial.make_app :HelloWorld

module HelloWorld::Controllers
  class Index < R '/'
    def get
      @title = "Hello World"
      render :index
    end
  end
end

module HelloWorld::Views
  def index
    p "Hello World"
  end
end

OpenSocial.start_mongrel :HelloWorld, :port => 3301, :root => "/"


Requirements
============
* Camping
* Builder
* Mongrel

About

A wrapper around the Camping microframework and Mongrel that allows for a clean, effective way of writing and serving lightweight OpenSocial widgets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published