diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-09 15:53:51 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-09 15:53:51 -0500 |
commit | 39a34b63b0615002172e7db314e2caf663404e09 (patch) | |
tree | ad90bd60ee6fddaffccab3091de086bcfe98d28a /lib/util.rb | |
parent | f851b5e00df7a5cc07335def23891e3a7c99c7bf (diff) |
fixfixfix
Diffstat (limited to 'lib/util.rb')
-rw-r--r-- | lib/util.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/util.rb b/lib/util.rb deleted file mode 100644 index 075ebb8..0000000 --- a/lib/util.rb +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 - -module Util - def self.html_escape(html) - html - .gsub('&', '&') - .gsub('>', '>') - .gsub('<', '<') - end - - def self.breadcrumbs(url) - # TODO - bc = [] - u = url.path - u = "/" if u == "" - while u != "/" - bc.unshift("<a href=\"#{u}\">#{File::basename(u, File::extname(u))}</a>") - u = File::dirname(u) - end - bc.unshift("<a href=\"/\">Andrew D. Murrell</a>") - return bc.join(' ยป ') - end -end |