lib/milksteak.rb in milksteak-0.0.6 vs lib/milksteak.rb in milksteak-0.0.7

- old
+ new

@@ -3,10 +3,11 @@ require "milksteak/cms" require "milksteak/liquid_helpers" require "sinatra/base" require "models/user" require "models/yml_content" +require "models/layout" require "models/page" require "models/fragment" require "bluecloth" module Milksteak @@ -52,11 +53,10 @@ msgs.join end end before '/ms-admin/?*' do - # note: it is your responsibility to manage users and login processes. Any # reference milksteak uses to a user will be done through the value stored # in session[:ms_user]. It is best to store a string or integer that you can # use on your own to reference the user. This might change at some point to # allowing you to put a Milksteak::User in this variable with predictable @@ -65,10 +65,9 @@ unless session[:ms_user] flash[:error] = "You must be logged in to see this area." redirect "/" end - end get "/ms-admin" do erb "admin", :layout => "admin" end