require 'staytus/version'

module Staytus
  module Config
    class << self

      def theme_name
        ENV['STAYTUS_THEME'] || 'default'
      end

      def theme_root
        Rails.root.join('content', 'themes', self.theme_name)
      end

      def version
        Staytus::VERSION
      end

      def demo?
        ENV['STAYTUS_DEMO'] == '1'
      end

    end
  end
end

require 'staytus/version'

module Staytus
  module Config
    class << self

      def theme_name
        ENV['STAYTUS_THEME'] || 'default'
      end

      def theme_root
        ENV['STAYTUS_THEME_ROOT'] ? File.join(ENV['STAYTUS_THEME_ROOT'], self.theme_name) : Rails.root.join('content', 'themes', self.theme_name)
      end

      def version
        Staytus::VERSION
      end

      def demo?
        ENV['STAYTUS_DEMO'] == '1'
      end

    end
  end
end

Allow to point the theme root somewhere else.
Allow to point the theme root somewhere else.

I am currently integrating Staytus into NixOS. This change will allow me to pass a theme from another package. The problem is that packages in NixOS are read-only, which means I cannot copy a theme into the staytus package once it is already there.
