       @next()
 
 
+  @route 'createTemplate',
+    path: '/template/create'
+    onBeforeAction: ->
+      if Meteor.settings.public.environment == "prod"
+        GARecordPage('/template/create')
+      Meteor.call("syncProfile")
+      @next()
+      
+
   @route 'manageTemplates',
     path: '/manage'
     waitOn: ->

      template: Template.findOne(this.params._id)
    onBeforeAction: ->
      if Meteor.settings.public.environment == "prod"
        GARecordPage('/template/:_id/view')
      Meteor.call("syncProfile")
      @next()


      @next()


  @route 'viewTemplate',
    path: '/manage/:_id'
    waitOn: ->
      Meteor.subscribe 'Template'
      Meteor.subscribe 'sharedTemplate'
