This file contains hidden or 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 'sinatra' | |
require 'date' | |
class Doer | |
attr_accessor :on, :off | |
def makeDate(date) | |
return Date.strptime(date, "%m/%d/%Y") | |
end |
This file contains hidden or 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
SONG_TEMPLATE = ''' | |
<table> | |
{{#if songs.length }} | |
{{#each songs}} | |
<tr><td>{{ this.name }}</td><td>{{ this.duration }}</td></tr> | |
{{/each}} | |
{{/if}} | |
</table> | |
''' |