Skip to content

Commit

Permalink
Adapt to Paw JS API version 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mittsh committed Sep 10, 2015
1 parent deb07a2 commit 08bd6b1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion JavaApacheHttpClientFluentAPICodeGenerator.coffee
@@ -1,4 +1,10 @@
require "mustache.js"
# in API v0.2.0 and below (Paw 2.2.2 and below), require had no return value
((root) ->
if root.bundle?.minApiVersion('0.2.0')
root.Mustache = require("./mustache")
else
require("mustache.js")
)(this)

addslashes = (str) ->
("#{str}").replace(/[\\"]/g, '\\$&')
Expand Down

0 comments on commit 08bd6b1

Please sign in to comment.