head	1.2;
access;
symbols
	RELEASE_8_3_0:1.2
	RELEASE_9_0_0:1.2
	RELEASE_7_4_0:1.2
	RELEASE_8_2_0:1.2
	RELEASE_6_EOL:1.2;
locks; strict;
comment	@# @;


1.2
date	2010.11.11.03.22.23;	author pgollucci;	state Exp;
branches;
next	1.1;

1.1
date	2010.08.09.05.36.05;	author miwi;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- github is redirecting all these to https now
@
text
@sinatra-url-for constructs absolute paths and full URLs for
handlers in a Sinatra application. Assuming that your application
is running on example.com, and that it has been mapped to /myapp,
you should be able call url_for from within a handler as follows:

  url_for "/"            # Returns "/myapp/"
  url_for "/foo"         # Returns "/myapp/foo"
  url_for "/foo", :full  # Returns "http://example.com/myapp/foo"

WWW: https://github.com/emk/sinatra-url-for
@


1.1
log
@sinatra-url-for constructs absolute paths and full URLs for
handlers in a Sinatra application. Assuming that your application
is running on example.com, and that it has been mapped to /myapp,
you should be able call url_for from within a handler as follows:

  url_for "/"            # Returns "/myapp/"
  url_for "/foo"         # Returns "/myapp/foo"
  url_for "/foo", :full  # Returns "http://example.com/myapp/foo"

WWW: http://github.com/emk/sinatra-url-for

PR:		ports/149359
Submitted by:	Eric Freeman <freebsdports at chillibear.com>
@
text
@d10 1
a10 1
WWW: http://github.com/emk/sinatra-url-for
@

