Addressable 2.0.0
Addressable is designed to let you treat URIs as first-class objects, with full support for internationalized resource identifiers. Also supports reverse URI template processing for framework routing.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Addressable is designed to let you treat URIs as first-class objects, with full support for internationalized resource identifiers. Also supports reverse URI template processing for framework routing.
Comments
Removed the code - items on the front page are to be short and snappy. You can put the code in a comment if you want :)
Yeah, that’s why I bugged you about the preview thing. It was clearly too long after I posted it, but didn’t look that long in the text box.
Addressable::URI.parse( "http://example.com/a/b/c/?one=1&two=2#foo" ).extract_mapping( "http://{host}/{-suffix|/|segments}?{-join|&|one,two,bogus}\#{fragment}" ) # { # "host" => "example.com", # "segments" => ["a", "b", "c"], # "one" => "1", # "two" => "2", # "fragment" => "foo" # }I assume spacing isn’t being respected there either? That might be another issue for me to look at.. :)
Yeah, the code isn’t being counted as preformatted. The correct way to markup multiple lines of code is with a code element inside a pre element.
You’re right. Perhaps I will get it to add the pre tag automatically, as I like the semantics of just using CODE - but it works as you say.
Post a comment