lib/wbase/engine.rb in wbase-0.0.1 vs lib/wbase/engine.rb in wbase-0.0.2

- old
+ new

@@ -1,65 +1,130 @@ module Wbase + class << self + mattr_accessor( + # Common + :title, + :description, + :url, + :image, + :keywords, + :site_name, + + # Landing + :sub_title, + :call_to_action, + :call_to_action_path, + :getting_started_video, + + # Styles + :primary_color, + :success_color, + :info_color, + :warning_color, + :danger_color, + ) + [:team, + :nav_items, + :features, + :case_studies, + :testimonials, + :socials, + :plans].each do |setting| + mattr_accessor setting do + [] + end + end + + landing_sections = [ + :nav, + :header, + :features, + :description, + :video, + :customers, + :pricing, + :trial, + :about, + :newsletter, + :team, + :social, + :contact, + :footer, + ] + landing_sections.each do |setting| + mattr_accessor setting do + true + end + end + mattr_accessor :landing_sections do + landing_sections + end + end + + def self.setup(&block) + yield self + end + class Engine < ::Rails::Engine isolate_namespace Wbase end end