Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Aug 2010 05:36:05 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: ports/www Makefile ports/www/rubygem-emk-sinatra-url-for Makefile distinfo pkg-descr
Message-ID:  <201008090536.o795a5kr088339@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
miwi        2010-08-09 05:36:05 UTC

  FreeBSD ports repository

  Modified files:
    www                  Makefile 
  Added files:
    www/rubygem-emk-sinatra-url-for Makefile distinfo pkg-descr 
  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>
  
  Revision  Changes    Path
  1.2657    +1 -0      ports/www/Makefile
  1.1       +22 -0     ports/www/rubygem-emk-sinatra-url-for/Makefile (new)
  1.1       +3 -0      ports/www/rubygem-emk-sinatra-url-for/distinfo (new)
  1.1       +10 -0     ports/www/rubygem-emk-sinatra-url-for/pkg-descr (new)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008090536.o795a5kr088339>