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 46131fe commit 88851cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion PHPcURLCodeGenerator.coffee
Original file line number Diff line number Diff line change
@@ -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 88851cf

Please sign in to comment.