!!! 5
%html
  %head
    %title Photeasy
    = csrf_meta_tags
    = stylesheet_link_tag 'main'
    = javascript_include_tag 'vendor/requirejs/require', 'data-main' => '/assets/main.js'
    = javascript_include_tag '//use.typekit.net/ydd6wgd.js'
    :javascript
      try{Typekit.load();}catch(e){} 
  %body
    #wrap
      %header#header
      %section#main
        #pages
          = yield
      %footer#footer
      #overlay

    = javascript_include_tag "//js.pusher.com/#{ENV['PUSHER_VERSION']}/pusher.min.js"
    - if Rails.env.development?
      :javascript
        // Enable pusher logging - don't include this in production
        Pusher.log = function(message) {
          if (window.console && window.console.log) window.console.log(message);
        };
    :javascript
      var pusher = new Pusher("#{Pusher.key}");
      // var channel = pusher.subscribe('test_channel');
      // channel.bind('greet', function(data) {
      //   alert(data.greeting);
      // });
    - if current_user.present?
      :javascript
        window.current_user = #{current_user.as_json}
!!! 5
%html
  %head
    %title Photeasy
    = csrf_meta_tags
    = stylesheet_link_tag 'main'
    = javascript_include_tag 'vendor/requirejs/require', 'data-main' => '/assets/main.js'
    = javascript_include_tag '//use.typekit.net/ydd6wgd.js'
    :javascript
      try{Typekit.load();}catch(e){}
  %body
    #wrap
      %header#header
      %section#main
        #pages
          = yield
      %footer#footer
      #overlay

    = javascript_include_tag "//js.pusher.com/#{ENV['PUSHER_VERSION']}/pusher.min.js"
    - if Rails.env.development?
      :javascript
        // Enable pusher logging - don't include this in production
        Pusher.log = function(message) {
          if (window.console && window.console.log) window.console.log(message);
        };
    :javascript
      var pusher = new Pusher("#{Pusher.key}");
      // var channel = pusher.subscribe('test_channel');
      // channel.bind('greet', function(data) {
      //   alert(data.greeting);
      // });
    - if user_signed_in?
      :javascript
        window.current_user = #{current_user.as_json}
Change user signed in conditional logic.
Change user signed in conditional logic.
