Sha256: 6d9da33abf52bce3bde6bf18e50a0e743ff197f0976117f3bcdd57ce7a83b867

Contents?: true

Size: 927 Bytes

Versions: 1

Compression:

Stored size: 927 Bytes

Contents

# ~*~ encoding: utf-8 ~*~
require 'aladdin/support/core_ext/hash'

module Aladdin

  root = File.expand_path('../../..', __FILE__)

  # Paths to other parts of the library.
  PATHS = {
    root:     root,
    assets:   File.expand_path('assets', root),
    skeleton: File.expand_path('skeleton', root)
  }.to_struct.freeze

  # Paths to different types of views.
  VIEWS = {
    haml:     File.expand_path('views/haml', root),
    scss:     File.expand_path('views/scss', root),
    default:  File.expand_path('views', root)
  }

  require 'tmpdir'
  # @todo TODO allow configuration?
  DATA_DIR = Dir.tmpdir

  # File extension for solution files.
  SOLUTION_EXT = '.sol'

  # Markdown extensions for Redcarpet
  MARKDOWN_EXTENSIONS = {
    no_intra_emphasis:  true,
    tables:             true,
    fenced_code_blocks: true,
    autolink:           true,
    strikethrough:      true,
    tables:             true,
  }

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aladdin-0.0.7 lib/aladdin/constants.rb