Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'sinatra/base'
- class Application < Sinatra::Base
- get '/hi' do
- @video_links = Dir.glob('/var/www/*.mp4')
- erb :hi
- end
- end
- Application.run!
- __END__
- @@ hi
- <% @video_links.each do |name| %>
- <video src='<%= name %>' controls />
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment