Created
November 6, 2009 18:42
-
-
Save secretfader/228172 to your computer and use it in GitHub Desktop.
generating xspf with Builder
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
xml.instruct! | |
xml.playlist :version => "1.0", :xmlns => "http://xspf.org/ns/0/" do | |
xml.trackList do | |
@tracks.each do |track| | |
xml.track do | |
xml.location track.title | |
xml.creator "#{track.user.firstname} #{track.user.lastname}" | |
xml.album track.album | |
xml.title track.title | |
xml.location track.song.url | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment