Created
December 11, 2012 15:53
-
-
Save alexciarlillo/4259576 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
Spine = require('spine') | |
class Calendar extends Spine.Model | |
@configure 'Calendar', 'name', 'month' | |
@extend @Local | |
today: -> | |
return new Date | |
module.exports = Calendar |
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
Test out: function () { return new Date; } |
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
<% for cal in @calendars: %> | |
<div class="cal-title clearfix"> | |
<h4><%= cal.name %></h4> | |
</div> | |
<h4>Test out: <%= cal.today %></h4> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment