def stitch(source_file, opts={})
      require 'stitch-rb'
      content= site.resolve source_file
      path = content.nil? ? source_file : content.source_path
      stitch_opts= {} #{ root: content.source_path }
      stitch_opts.merge! opts
      stitch_opts[:paths] ||= []
      if stitch_opts.fetch(:autorootpath, true)
        stitch_opts[:paths] << File.dirname(path) 
      end
      ::Stitch::Package.new(stitch_opts).compile
    rescue LoadError
      raise StandardError, "Stitch can't be loaded. Please add it to your Gemfile."
    end
def stitch(source_file, opts={})
      require 'stitch-rb'
      content= site.resolve source_file
      path = content.nil? ? source_file : content.source_path
      stitch_opts= {} #{ root: content.source_path }
      stitch_opts.merge! opts
      stitch_opts[:paths] ||= []
      if stitch_opts.fetch(:autorootpath, true)
        stitch_opts[:paths] << File.dirname(path) 
      end
      ::Stitch::Package.new(stitch_opts).compile
    rescue LoadError
      raise StandardError, "Stitch can't be loaded. Please add it to your Gemfile."
    end
mixes in to generator
 Stitch::Package.new options:
   :identifier=>'app',   # variable name for the library
   :paths=>['./app'],
   :root=>'./app',
   :dependencies=>[],    # List of scripts to prepend to top of file (non moduled)