Skip to content

Commit

Permalink
update samples
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Jan 3, 2018
1 parent 52f9f94 commit ee9a45a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion jjs/src/main/ts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ var result = mustache.render(template, { contact: { name: "bsorrentino",
print(result);
var u1 = "http://localhost:8000/site/";
var u2 = "/spaces/flyingpdf/pdfpageexport.action?pageId=100532618";
var uri = jdk8_types_1.URI.create(u1 + u2);
var u3 = "http://localhost:8000/spaces/flyingpdf/pdfpageexport.action?pageId=100532618";
var uri = jdk8_types_1.URI.create(u1);
print(uri.resolve(u2).toString());
print(jdk8_types_1.URI.create(u1 + u2).normalize().toString());
print(uri.resolve(u3).toString());
4 changes: 3 additions & 1 deletion jjs/src/main/ts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ print(result);

const u1 = "http://localhost:8000/site/";
const u2 = "/spaces/flyingpdf/pdfpageexport.action?pageId=100532618";
const u3 = "http://localhost:8000/spaces/flyingpdf/pdfpageexport.action?pageId=100532618";

let uri = URI.create( u1 + u2 );
let uri = URI.create( u1 );

print( uri.resolve( u2 ).toString() );
print( URI.create( u1 + u2 ).normalize().toString() );
print( uri.resolve( u3 ).toString() );

0 comments on commit ee9a45a

Please sign in to comment.