Skip to content

Instantly share code, notes, and snippets.

@ddsilva
Created December 10, 2013 12:08
Show Gist options
  • Select an option

  • Save ddsilva/7889635 to your computer and use it in GitHub Desktop.

Select an option

Save ddsilva/7889635 to your computer and use it in GitHub Desktop.
SIPLAN - site_controller.coffee
define [
'core'
'views/site/index_view'
], () ->
# Imports
# =============================================================
Core = require 'core'
IndexView = require 'views/site/index_view'
# SiteController class
# =============================================================
class SiteController extends Core.Controller
logPrefix: 'SiteController'
# Classes
indexView : IndexView
index: (options) ->
@title = 'Home'
@view = new @indexView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment