class Jekyll::Draft

def self.valid?(name)

Returns true if valid, false if not.

my-awesome-post.textile
Draft name validator. Draft filenames must be like:
def self.valid?(name)
  name =~ MATCHER
end

def containing_dir(source, dir)

Get the full path to the directory containing the draft files
def containing_dir(source, dir)
  File.join(source, dir, '_drafts')
end

def process(name)

Returns nothing.

name - The String filename of the post file.

Extract information from the post filename.
def process(name)
  m, slug, ext = *name.match(MATCHER)
  self.date = File.mtime(File.join(@base, name))
  self.slug = slug
  self.ext = ext
end

def relative_path

The path to the draft source file, relative to the site source
def relative_path
  File.join(@dir, '_drafts', @name)
end