nuke whitespace
This commit is contained in:
@@ -16,7 +16,7 @@ module Precious
|
||||
set :public_folder, "#{dir}/public"
|
||||
set :static, true
|
||||
set :default_markup, :markdown
|
||||
|
||||
|
||||
set :mustache, {
|
||||
# Tell mustache where the Views constant lives
|
||||
:namespace => Precious,
|
||||
|
||||
@@ -8,15 +8,15 @@ module Precious
|
||||
def title
|
||||
"Create a new page"
|
||||
end
|
||||
|
||||
|
||||
def is_create_page
|
||||
true
|
||||
end
|
||||
|
||||
|
||||
def is_edit_page
|
||||
false
|
||||
end
|
||||
|
||||
|
||||
def format
|
||||
@format = (@page.format || false) if @format.nil? && @page
|
||||
@format.to_s.downcase
|
||||
@@ -39,10 +39,10 @@ module Precious
|
||||
def formats
|
||||
super(:markdown)
|
||||
end
|
||||
|
||||
|
||||
def default_markup
|
||||
Precious::App.settings.default_markup
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -10,8 +10,8 @@ module Precious
|
||||
def has_results
|
||||
!@results.empty?
|
||||
end
|
||||
|
||||
def no_results
|
||||
|
||||
def no_results
|
||||
@results.empty?
|
||||
end
|
||||
end
|
||||
|
||||
@@ -10,8 +10,8 @@ module Precious
|
||||
def has_results
|
||||
!@results.empty?
|
||||
end
|
||||
|
||||
def no_results
|
||||
|
||||
def no_results
|
||||
@results.empty?
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user