Created
May 15, 2014 17:50
-
-
Save evansmith/ceb1e977363ce7256fca to your computer and use it in GitHub Desktop.
cake list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'sinatra/reloader' if development? | |
require 'erb' | |
get '/' do | |
line_num = 0 | |
#@cake = [] | |
cake = File.open("cake.list").readlines.each do |line| | |
#@cake.push("#{line_num +=1}. #{line}") | |
"#{line_num +=1}. #{line}" | |
end | |
#erb :index | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment