Created
January 10, 2009 23:07
-
-
Save akahn/45581 to your computer and use it in GitHub Desktop.
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 '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