Sha256: 720a701ab984e4b02d8c5a3eccbc86079527697b8ab02d67b39c17ab6b46c351

Contents?: true

Size: 670 Bytes

Versions: 16

Compression:

Stored size: 670 Bytes

Contents

module Lipsiadmin
  module View
    module Helpers
      module FrontendHelper
        # Set the title of the page and append at the end the name of the project
        # Usefull for google & c.
        def title(text)
          content_for(:title) { text + " - #{AppConfig.project}" }
        end
        
        # Set the meta description of the page
        # Usefull for google & c.
        def description(text)
          content_for(:description) { text }
        end
        
        # Set the meta keywords of the page
        # Usefull for google & c.
        def keywords(text)
          content_for(:keywords) { text }
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lipsiadmin-5.0.7 lib/view/helpers/frontend_helper.rb
lipsiadmin-5.0.6 lib/view/helpers/frontend_helper.rb
lipsiadmin-5.0.5 lib/view/helpers/frontend_helper.rb
lipsiadmin-5.0.4 lib/view/helpers/frontend_helper.rb
lipsiadmin-4.1.8 lib/view/helpers/frontend_helper.rb
lipsiadmin-5.0.0 lib/view/helpers/frontend_helper.rb
lipsiadmin-5.0.1 lib/view/helpers/frontend_helper.rb
lipsiadmin-5.0.2 lib/view/helpers/frontend_helper.rb
lipsiadmin-5.0.3 lib/view/helpers/frontend_helper.rb
lipsiadmin-4.1.1 lib/view/helpers/frontend_helper.rb
lipsiadmin-4.1.2 lib/view/helpers/frontend_helper.rb
lipsiadmin-4.1.5 lib/view/helpers/frontend_helper.rb
lipsiadmin-4.1.4 lib/view/helpers/frontend_helper.rb
lipsiadmin-4.1.3 lib/view/helpers/frontend_helper.rb
lipsiadmin-4.1.6 lib/view/helpers/frontend_helper.rb
lipsiadmin-4.1.7 lib/view/helpers/frontend_helper.rb