Skip to content

Instantly share code, notes, and snippets.

@maccman
Created July 24, 2011 16:00
Show Gist options
  • Save maccman/1102766 to your computer and use it in GitHub Desktop.
Save maccman/1102766 to your computer and use it in GitHub Desktop.
class StitchApplication
def initialize
@package = Stitch::Package.new(:paths => ["app/assets/javascripts/app", "app/assets/javascripts/lib"])
end
def call(env)
[200, {"Content-Type" => "text/javascript"}, [Uglifier.compile(@package.compile)]]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment