Skip to content

Instantly share code, notes, and snippets.

@alexciarlillo
Created December 11, 2012 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexciarlillo/4259576 to your computer and use it in GitHub Desktop.
Save alexciarlillo/4259576 to your computer and use it in GitHub Desktop.
Spine = require('spine')
class Calendar extends Spine.Model
@configure 'Calendar', 'name', 'month'
@extend @Local
today: ->
return new Date
module.exports = Calendar
Test out: function () { return new Date; }
<% 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