 
         template = readFile "curl.mustache"
         rendered_code = Mustache.render template, view
-        @strip_last_backslash rendered_code
+        return @strip_last_backslash rendered_code
+
+    @generate = (context, requests, options) ->
+        self.options = (options || {}).inputs || {}
+        console.log('@@@@', JSON.stringify(options, null, 2))
+
+        curls = requests.map((request) ->
+            return self.generateRequest(request)
+        )
+
+        return curls.join('\n')
 
     return
 

                break
        lines.join("\n")

    @generate = (context) ->
        request = context.getCurrentRequest()

        view =
            "request": context.getCurrentRequest()
            "headers": @headers request
            "body": @body request


    ("#{str}").replace(/[\\']/g, '\\$&')

cURLCodeGenerator = ->
    self = this

    @headers = (request) ->
        headers = request.headers
