Sha256: 99b2ee3e23eb83b9c54a91b455f3104b306e1b5f7dc3e53e591de17b59512ac2

Contents?: true

Size: 666 Bytes

Versions: 5

Compression:

Stored size: 666 Bytes

Contents

module Lightbox2Helpers::IncludesHelper
  # returns the selected lightbox2_helpers stylesheet (not an array)
  def lightbox2_helpers_stylesheets()
    "lightbox2_helpers/lightbox.css"
  end

  # returns an array of javascripts needed
  def lightbox2_helpers_javascripts()
    ["lightbox2_helpers/lightbox2_helpers"]
  end

  # returns html necessary to load javascript and css to make lightbox2_helpers work
  def lightbox2_helpers_includes(*args)
    return "" if @lhs_already_included
    @lhs_already_included=true
    
    javascript_include_tag(*lightbox2_helpers_javascripts ) + "\n" +
    stylesheet_link_tag(*lightbox2_helpers_stylesheets ) + "\n"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
splendeo-lightbox2_helpers-0.5.1 lib/lightbox2_helpers/includes_helper.rb
splendeo-lightbox2_helpers-0.5.2 lib/lightbox2_helpers/includes_helper.rb
splendeo-lightbox2_helpers-0.5.4 lib/lightbox2_helpers/includes_helper.rb
splendeo-lightbox2_helpers-0.5.5 lib/lightbox2_helpers/includes_helper.rb
splendeo-lightbox2_helpers-0.5 lib/lightbox2_helpers/includes_helper.rb