rubygem-emk-sinatra-url-for
0.2.1Construct absolute paths and full URLs for a Sinatra application
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"
Origin: www/rubygem-emk-sinatra-url-for
Category: www
Size: 6.53KiB
License: MIT
Maintainer: ruby@FreeBSD.org
Dependencies: 3 packages
Required by: 1 packages
Website: github.com/emk/sinatra-url-for
$
pkg install rubygem-emk-sinatra-url-forDependencies (3)
Required By (1 packages)
More in www
py311-requests2.32.5
Python HTTP for Humansp5-libwww6.81
Perl5 library for WWW accessp5-HTML-Parser3.83
Perl5 module for parsing HTML documentsphp84-session8.4.16
The session shared extension for phpp5-Catalyst-Runtime5.90132_1
Elegant MVC Web Application Framework (Runtime)py311-django424.2.29
High-level Python Web Frameworkapache242.4.66
Version 2.4.x of Apache web serverp5-HTTP-Message7.01
Representation of HTTP style messagesp5-Template-Toolkit3.102
Extensible template processing systemp5-Plack1.0051
Perl extension of PSGI reference implementation and utilities