initial integration of text editor

This commit is contained in:
Kyle Drake 2013-06-03 22:32:39 -07:00
parent 4e4ef8799d
commit 44d785e222
5 changed files with 94 additions and 2 deletions

5
app.rb
View file

@ -148,6 +148,11 @@ post '/site_files/delete' do
redirect '/dashboard'
end
get '/site_files/text_editor/:filename' do |filename|
@file_url = "http://#{current_site.username}.neocities.org/#{filename}"
slim :'site_files/text_editor'
end
get '/terms' do
slim :'terms'
end