diff --git a/examples/winter/config.ru b/examples/winter/config.ru index a476a09..f1eeb23 100644 --- a/examples/winter/config.ru +++ b/examples/winter/config.ru @@ -1,7 +1,4 @@ -# run with: thin --rackup config.ru -p 4567 start - -require 'app2' +require 'winter' use Rack::ShowExceptions -use Rack::Static, :urls => ["/stylesheets", "/javascripts", "/images"], :root => "public" run Sinatra::Application diff --git a/examples/winter/public/javascripts/app2.js b/examples/winter/public/javascripts/app.js similarity index 100% rename from examples/winter/public/javascripts/app2.js rename to examples/winter/public/javascripts/app.js diff --git a/examples/winter/public/stylesheets/app2.css b/examples/winter/public/stylesheets/app.css similarity index 100% rename from examples/winter/public/stylesheets/app2.css rename to examples/winter/public/stylesheets/app.css diff --git a/examples/winter/views/index.erb b/examples/winter/views/index.erb index 3c95547..7bbf605 100644 --- a/examples/winter/views/index.erb +++ b/examples/winter/views/index.erb @@ -1,3 +1,5 @@

<%= @title %>

<%= image_tag "/images/tatry2.jpg", :alt => @title, :title => @title %>

+ +

Tatra Mountain in Summer

diff --git a/examples/winter/views/layout.erb b/examples/winter/views/layout.erb index 8fc18e9..c6d1512 100644 --- a/examples/winter/views/layout.erb +++ b/examples/winter/views/layout.erb @@ -2,8 +2,8 @@ - <%= stylesheet_link_tag "/stylesheets/app2.css" %> - <%= javascript_script_tag "/javascripts/app2.js" %> + <%= stylesheet_link_tag "/stylesheets/app.css" %> + <%= javascript_script_tag "/javascripts/app.js" %> <%= @title %> diff --git a/examples/winter/app2.rb b/examples/winter/winter.rb similarity index 100% rename from examples/winter/app2.rb rename to examples/winter/winter.rb