require './lib/templated' def render_html song template = html_template 'song' template.result binding end def make_htmls songs songs.each do |song_id, song| content = render_html song write_templated content, song_html(song_id), song.title end end