summaryrefslogtreecommitdiff
path: root/lib/util.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.rb')
-rw-r--r--lib/util.rb23
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('<', '&lt;')
- 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