Skip to content

Instantly share code, notes, and snippets.

@akahn
Created January 10, 2009 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akahn/45581 to your computer and use it in GitHub Desktop.
Save akahn/45581 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'sinatra'
require 'youtube_g'
client = YouTubeG::Client.new
faves = client.videos_by(:favorites, :user => 'alexanderkahn')
output = ''
faves.videos.each do |fave|
output = output + fave.embed_html
end
get '/' do
haml output # gives error
# haml 'blah' # does not give error
end
use_in_file_templates!
__END__
@@ layout
=yield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment