module JambuCms
  class Getter

    def self.text(id)
      t = Text.where(id: id)

      if t.blank?
        nil
      else
        t[0].text
      end
    end

    def self.section(id)
      s = Section.where(id: id)

      if s.blank?
        nil
      else
        s[0].html
      end
    end

  end
end