Project

addressive

0.0
No commit activity in last 3 years
No release in over 3 years
A system which should help bringing different Rack applications together.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

>= 0.5.1
 Project Readme

ADDRESSIVE - makes uris agressive!

Idea behind this: encapsulate the whole uri generating stuff in a simple object graph. This approach yields some nice effects:

  • the whole uri generating stuff is accessible via one object with just one interface
  • ... which is totally ideal for dependency injection
  • ... or mocking
  • all uris are generated with simple string templates
  • ... so your uri generating scheme is perfectly serializeable
  • ... and follows open standards
  • ... who said decoupling?

Examples

routing = Addressive.node do
  uri '/foo'
end
routing.uri.to_s #=> '/foo'

Okay, this was easy.