Permalink
Browse files

using infile templates

  • Loading branch information...
1 parent 653838c commit 73f84f4ec0ab4590fd02352b5f868b9871ab26bb @sickill committed Jul 10, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 sickounter.rb
View
@@ -3,6 +3,8 @@
COUNTERS_DIR = ENV['COUNTERS_DIR'] || File.join(File.dirname(__FILE__), 'counters')
+use_in_file_templates!
+
get '/' do
url = params[:f] or raise Sinatra::NotFound
filename = url.gsub(/https?:\/\//, "").gsub(/[^a-zA-Z0-9_-]/, ".") + ".txt"

0 comments on commit 73f84f4

Please sign in to comment.