diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2010-02-08 22:05:01 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2010-02-08 22:05:01 +0000 |
commit | 94b6e9013fc6f6bc2fcf2f5bb99e89f69fc7b05c (patch) | |
tree | b762d25fdbeed60d7fbdf715a904e542a0adfcbe /www/rubygem-ramaze/files/xhtml.rb.patch | |
parent | Simple, straight-forward base for web-frameworks. (diff) |
Ramaze is a simple and modular web framework
WWW: http://ramaze.net
PR: ports/143515
Submitted by: Jyun-Yan You <jyyou at cs.nctu.edu.tw>
Notes
Notes:
svn path=/head/; revision=249459
Diffstat (limited to 'www/rubygem-ramaze/files/xhtml.rb.patch')
-rw-r--r-- | www/rubygem-ramaze/files/xhtml.rb.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/www/rubygem-ramaze/files/xhtml.rb.patch b/www/rubygem-ramaze/files/xhtml.rb.patch new file mode 100644 index 000000000000..94f19c6009a5 --- /dev/null +++ b/www/rubygem-ramaze/files/xhtml.rb.patch @@ -0,0 +1,20 @@ +--- lib/ramaze/helper/xhtml.rb.orig 2009-11-04 20:13:31.180694249 +0800 ++++ lib/ramaze/helper/xhtml.rb 2009-11-04 20:18:00.000000000 +0800 +@@ -8,7 +8,7 @@ + + def css(name, media = 'screen', options = {}) + if options.empty? +- LINK_TAG % ["/css/#{name}.css", media] ++ LINK_TAG % ["#{Ramaze.options.prefix}/css/#{name}.css", media] + elsif options[:only].to_s.downcase == 'ie' + "<!--[if IE]>#{css(name, media)}<![endif]-->" + end +@@ -22,7 +22,7 @@ + if name =~ /^http/ # consider it external full url + SCRIPT_TAG % name + else +- SCRIPT_TAG % "/js/#{name}.js" ++ SCRIPT_TAG % "#{Ramaze.options.prefix}/js/#{name}.js" + end + end + |