Skip to content

Commit

Permalink
registration
Browse files Browse the repository at this point in the history
  • Loading branch information
banacorn committed Feb 15, 2013
1 parent 62e015c commit d1d4b25
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 4 deletions.
5 changes: 3 additions & 2 deletions scripts/template.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions scripts/views/registration.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/template.coffee
Expand Up @@ -6,10 +6,12 @@ define [
'text!../templates/project/list.html'
'text!../templates/project/listitem.html'
'text!../templates/project.html'
], (Hogan, File, Home, Layout, ProjectList, ProjectListitem, Project) ->
'text!../templates/registration.html'
], (Hogan, File, Home, Layout, ProjectList, ProjectListitem, Project, Registration) ->
file: Hogan.compile File
home: Hogan.compile Home
layout: Hogan.compile Layout
projectList: Hogan.compile ProjectList
projectListitem: Hogan.compile ProjectListitem
project: Hogan.compile Project
project: Hogan.compile Project
registration: Hogan.compile Registration
14 changes: 14 additions & 0 deletions src/views/registration.coffee
@@ -0,0 +1,14 @@
define [
'jquery',
'backbone',
'template'
], ($, Backbone, $$) ->

class Registration extends Backbone.View
tagName: 'article'
id: 'registration'
template: $$.registration
initialize: -> @render()
render: ->
@$el.html @template.render()
return @
1 change: 1 addition & 0 deletions templates/registration.html
@@ -0,0 +1 @@
<h1>註冊</h1>

0 comments on commit d1d4b25

Please sign in to comment.