 
 # note: this isn't called when switching between files
 Template.fileEdit.rendered = ->
-  console.log 'rendered'
   GitRt.cm = CodeMirror.fromTextArea(editor,
     lineNumbers: true
   )

    GitRt.cm.focus()
    # TODO are we going to handle clients ourselves?
    clients = []
    console.log fileInfo
    serverAdapter = new MeteorServerAdapter(fileInfo._id)
    GitRt.editorClient = new ot.EditorClient(fileInfo.revision, clients,
      serverAdapter, GitRt.cmAdapter)


Deps.autorun ->
  fileInfo = FileInfo.findOne()
  if fileInfo
    # TODO is GitRt.cm guaranteed to be set here? looks like no
    try
