Re:Start — Dart web framework inspired by Sinatra
by Daegalus on Thursday March 21, 2013 @04:21PM
(#5418648)
I went a much similar route with my lightweight express-inspried framework.
I made user-controlled classes that get populated with relevant data and middleware information. Like stuff from form parsing.
Since Dart lacks the ability to extend built-in types using something like extension methods, categories or refinements as seen in other languages I think exposing a user-controlled class is the way to go as it lets you expose a framework-focused, value-added, user-facing DRY API.