Sha256: d40e543e48b0059afe9b96089c856287070e15a8ff855fa1c9febb4d1488752a

Contents?: true

Size: 1.48 KB

Versions: 20

Compression:

Stored size: 1.48 KB

Contents

require 'rubygems'
require 'ramaze'

Ramaze.setup :verbose => true do
  gem 'sequel', '2.12.0'
  gem 'maruku', '0.5.9'
end

module Blog
  include Ramaze::Optioned

  options.dsl do
    o 'Title of this blog', :title,
      'Ramaze Blog'

    o 'Subtitle of the blog', :subtitle,
      'manveru.thoughts.to_html'

    sub :author do
      o 'Your name', :name,
        'Michael Fellinger'

      o 'Your email address', :email,
        'm.fellinger@gmail.com'

      o 'URL pointing to you, uses the url of this blog if nil', :url,
        'http://github.com/manveru'
    end

    sub :admin do
      o "Admin username", :name,
        'manveru'

      o "Admin password", :password,
        'letmein'
    end

    sub :sidebar do
      o "Elements to display in the sidebar", :elements,
        [:bio, :tagcloud, :history, :admin]

      sub :bio do
        o 'Describe yourself, you may use html', :text,
          "My name is Forrest, Forrest Gump.<br />
           I enjoy running, chocolate, talking, and Jenny."
      end

      sub :history do
        o "How many past entries should be shown in the history", :size,
          20
      end
    end

    o 'Number of entries shown in entry listings', :list_size,
      10

    o 'How many entries are shown in the feeds', :feed_size,
      100

    o 'Feed UUID', :uuid,
      'ramaze_blog'

    o "Time format used throughout the blog, see `ri Time.strftime`", :time_format,
      '%A, %d.%m.%Y at %R'
  end
end

require 'model/init'
require 'controller/init'

Version data entries

20 entries across 20 versions & 4 rubygems

Version Path
Pistos-ramaze-2009.06.12 examples/app/blog/app.rb
manveru-ramaze-2009.04.22 examples/app/blog/app.rb
manveru-ramaze-2009.04 examples/app/blog/app.rb
manveru-ramaze-2009.05.08 examples/app/blog/app.rb
manveru-ramaze-2009.05 examples/app/blog/app.rb
manveru-ramaze-2009.06.04 examples/app/blog/app.rb
manveru-ramaze-2009.06.12 examples/app/blog/app.rb
manveru-ramaze-2009.06 examples/app/blog/app.rb
manveru-ramaze-2009.07 examples/app/blog/app.rb
rjspotter-ramaze-2009.06.29 examples/app/blog/app.rb
rjspotter-ramaze-2009.06.31 examples/app/blog/app.rb
ramaze-2010.03 examples/app/blog/app.rb
ramaze-2010.01 examples/app/blog/app.rb
ramaze-2009.10 examples/app/blog/app.rb
ramaze-2009.07 examples/app/blog/app.rb
ramaze-2009.04 examples/app/blog/app.rb
ramaze-2009.05 examples/app/blog/app.rb
ramaze-2009.06.04 examples/app/blog/app.rb
ramaze-2009.06 examples/app/blog/app.rb
ramaze-2009.06.12 examples/app/blog/app.rb