Skip to content

Commit 08bd6b1

Browse files
committed
Adapt to Paw JS API version 0.2.0
1 parent deb07a2 commit 08bd6b1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

JavaApacheHttpClientFluentAPICodeGenerator.coffee

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
require "mustache.js"
1+
# in API v0.2.0 and below (Paw 2.2.2 and below), require had no return value
2+
((root) ->
3+
if root.bundle?.minApiVersion('0.2.0')
4+
root.Mustache = require("./mustache")
5+
else
6+
require("mustache.js")
7+
)(this)
28

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

0 commit comments

Comments
 (0)