Sha256: b0809ddf5c58d985988d151b6fa82668e0ffaed8230d09bd12db499bd79905f4

Contents?: true

Size: 1.01 KB

Versions: 9

Compression:

Stored size: 1.01 KB

Contents

#
# Copyright 2011 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public
# License as published by the Free Software Foundation; either version
# 2 of the License (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or implied,
# including the implied warranties of MERCHANTABILITY,
# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
# have received a copy of GPLv2 along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.

module UIAlchemy
  module LayoutHelper
    def no_template
      _("No Template")
    end

    def stylesheet(*args)
      args.map { |arg| content_for(:stylesheets) { stylesheet_link_tag(arg) } }
      return ""
    end

    def javascript(*args, &block)
      if block
        content_for(:inline_javascript) { block.call() }
      end
      if args
        args.map { |arg| content_for(:javascripts) { javascript_include_tag(arg) } }
      end
      return ""
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ui_alchemy-rails-1.0.12 app/helpers/ui_alchemy/layout_helper.rb
ui_alchemy-rails-1.0.11 app/helpers/ui_alchemy/layout_helper.rb
ui_alchemy-rails-1.0.10 app/helpers/ui_alchemy/layout_helper.rb
ui_alchemy-rails-1.0.9 app/helpers/ui_alchemy/layout_helper.rb
ui_alchemy-rails-1.0.8 app/helpers/ui_alchemy/layout_helper.rb
ui_alchemy-rails-1.0.7 app/helpers/ui_alchemy/layout_helper.rb
ui_alchemy-rails-1.0.6 app/helpers/ui_alchemy/layout_helper.rb
ui_alchemy-rails-1.0.5 app/helpers/ui_alchemy/layout_helper.rb
ui_alchemy-rails-1.0.4 app/helpers/ui_alchemy/layout_helper.rb