Sha256: 3959cb16b825f7cc2f20b9eaa224fb3fd9629e2aab52e46ce1e88f7170996f8f

Contents?: true

Size: 827 Bytes

Versions: 7

Compression:

Stored size: 827 Bytes

Contents

require 'socket'
layout 'layout.html.erb'

ignore /css\//
ignore /js\//
ignore /.+.md/
ignore /Gemfile.*/
ignore /Procfile/
ignore /compile.rb/

helpers do
  def asset_path
    if @_stasis.options[:asset_path]
      @_stasis.options[:asset_path]
    elsif Socket.gethostname == "foundation"
      "http://foundation.zurb.com/docs/assets"
    else
      "http://#{Socket.ip_address_list.detect{|intf| intf.ipv4_private?}.getnameinfo[0]}:4001/assets"
    end
  end

  def code_example(code, lang=:ruby)
    "<div class='#{lang}'>" + CodeRay.scan(code, lang).div(:css => :class) + "</div>"
  end

  def foundation_home_path
    '/'
  end

  def features_path
    '/grid.php'
  end

  def add_ons_path
    '/templates.php'
  end

  def case_studies_path
    '/case-jacquelinewest.php'
  end

  def docs_path
    '/docs/'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
zurb-foundation-4.1.1 docs/controller.rb
zurb-foundation-4.0.9 docs/controller.rb
zurb-foundation-4.0.8 docs/controller.rb
zurb-foundation-4.0.7 docs/controller.rb
zurb-foundation-4.0.5 docs/controller.rb
zurb-foundation-4.0.4 docs/controller.rb
zurb-foundation-4.0.3 docs/controller.rb