application/views/index.erb in spontaneous-0.2.0.beta1 vs application/views/index.erb in spontaneous-0.2.0.beta2

- old
+ new

@@ -5,44 +5,36 @@ <meta http-equiv="X-UA-Compatible" content="chrome=1" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <title>Spontaneous: Loading...</title> <link REL="SHORTCUT ICON" HREF="/@spontaneous/static/favicon.ico" /> - <% Spontaneous::Rack::Assets::CSS::EDITING_CSS.each do |css_file| %> - <link rel="stylesheet" href="<%= style_url(css_file) %>" type="text/css" media="screen" charset="utf-8" /> - <% end %> - <% Spontaneous::Rack::Assets::JavaScript::JQUERY.each do |js_file| %> - <script type="text/javascript" charset="utf-8" src="<%= script_url(js_file) %>"></script> - <% end %> - <% Spontaneous::Rack::Assets::JavaScript::COMPATIBILITY.each do |js_file| %> - <script type="text/javascript" charset="utf-8" src="<%= script_url(js_file) %>"></script> - <% end %> + <link rel="stylesheet" href="<%= style_url("spontaneous") %>" type="text/css" media="screen" charset="utf-8" /> + <script type="text/javascript" charset="utf-8" src="<%= script_url("vendor/jquery") %>"></script> <script type="text/javascript" charset="utf-8"> Spontaneous = { site_domain: '<%= Spontaneous::Site.config.site_domain %>', site_id: '<%= Spontaneous::Site.config.site_id %>', debug: <%= Spontaneous.development? %>, development: <%= Spontaneous.development? %>, asynchronous: <%= Spontaneous.production? %>, editor_protocol: 'mvim', + csrf_header: '<%= Spontaneous::Rack::CSRF_HEADER %>', + csrf_token: '<%= env[Spontaneous::Rack::CSRF_TOKEN] %>', <% if Spontaneous.config.auto_login; %> auto_login: '<%= Spontaneous.config.auto_login %>', - user_key: '<%= env[Spontaneous::Rack::ACTIVE_KEY].key_id %>', <% end %> onload: function() { jQuery.noConflict(); } }; </script> - <% Spontaneous::Rack::Assets::JavaScript::REQUIRE.each do |js_file| %> - <script type="text/javascript" charset="utf-8" src="<%= script_url(js_file) %>"></script> - <% end %> + <script type="text/javascript" charset="utf-8" src="<%= script_url("require") %>"></script> </head> <body id="spontaneous"> <script type="text/javascript" charset="utf-8"> Spontaneous.Require.init(Spontaneous.asynchronous); <%# list of scripts to append, in order %> - var sources = <%= script_list(Spontaneous::Rack::Assets::JavaScript::EDITING_JS) %>; + var sources = <%= script_list(["spontaneous"]) %>; for (var i = 0, ii = sources.length; i < ii; i++) { Spontaneous.require(sources[i]); } </script> </body>