07 Jun '12, 12pm

@jcoglan Not Rack extensions, but the API Sinatra provides to register modules. I have controller like extensions

The “Classic” style, where applications are defined on main / the top-level – most of the examples and documentation target this usage. Classic applications are often single-file, standalone apps that are run directly from the command line or with a minimal rackup file. When an extension is required in a classic application, the expectation is that all extension functionality should be present without additional setup on the application developers part (like included/extending modules). The “Modular” style, where Sinatra::Base is subclassed explicitly and the application is defined within the subclass’s scope. These applications are often bundled as libraries and used as components within a larger Rack-based system. Modular applications must include any desired extensions explicitly by calling register ExtensionModule within the application’s class scope.

Full article: http://www.sinatrarb.com/extensions.html

Tweets

FPGA-based vacation light controller

FPGA-based vacation light controller

eetimes.com 06 Jun '12, 4pm

FPGA-based vacation light controller Robin Findley, Findley Consulting 6/5/2012 5:06 PM EDT A few years ago, my wife and I...

5 Ways To Supercharge Your Social Sharing With Buffer’s New Browser Extensions

5 Ways To Supercharge Your Social Sharing With ...

searchenginejournal.com 31 May '12, 1pm

Big news came out from the folks over at Buffer last week. They have announced a brand new browser extension to make shari...

A few tips on how to build a well-structured AP...

railstips.org 05 Jun '12, 4pm

A few weeks back, we publicly released the Gauges API . Despite building Gauges from the ground up as an API , it was a lo...