# ~*~ 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, public: File.expand_path('public', 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