2 require 'git' # Ruby/Git
3 require 'git-blog/core_ext'
7 'xhtml' => /^<[^>]+>(.*)<[^>]+>$/,
8 'haml' => /^%[^\s\{]+(?:\{[^\}]\})? (.*)$/,
9 'textile' => /^h\d(?:[^\s\{]|\{[^\}]*\})*\. (.*)$/,
10 'markdown' => /^(.*)$/ # Also works for other
13 # Returns the path of file relative to the git-blog root.
14 # 'Borrowed' mostly wholesale from Haml 2.0.0 d-:
16 # File.join(File.expand_path( File.dirname(__FILE__) / '..' / '..' ), path.to_s)
18 # Fuck that, using a constant. LAWL.
19 Scope = File.expand_path( File.dirname(__FILE__) / '..' / '..' )
22 require 'git-blog/parsers'