# Tags for helping with track lists
#
module Jekyll
class BeginTrackListTag < Liquid::Tag
def initialize(tag, text, tokens)
super
end
def render(context)
%q{
Track list:
}
end
end
class EndTrackListTag < Liquid::Tag
def initialize(tag, text, tokens)
super
end
def render(context)
%q{}
end
end
class TrackTag < Liquid::Tag
def initialize(tag, text, tokens)
super
@num, @artist, @title, @url = text.split('|')
end
def render(context)
%Q{
}
end
end
class EndTrackTag < Liquid::Tag
def initialize(tag, text, tokens)
super
end
def render(context)
%Q{}
end
end
end
Liquid::Template.register_tag('begin_track_list', Jekyll::BeginTrackListTag)
Liquid::Template.register_tag('end_track_list', Jekyll::EndTrackListTag)
Liquid::Template.register_tag('track', Jekyll::TrackTag)
Liquid::Template.register_tag('end_track', Jekyll::EndTrackTag)