Skip to content

Commit

Permalink
Demo playground fix
Browse files Browse the repository at this point in the history
  • Loading branch information
larsga committed Jun 14, 2018
1 parent 7d3ca77 commit f9f08de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions lambda/lambda.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
</style>
<script>
function send() {
var out = document.getElementById('result');
out.firstChild.nodeValue = '...wait...';

var input = document.getElementById('input').value
var jstl = document.getElementById('jstl').value
var data = JSON.stringify(JSON.stringify({"json" : input,
Expand Down
2 changes: 1 addition & 1 deletion lambda/update-lambda.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARTIFACT_PATH=../build/libs/jstl*-all.jar
ARTIFACT_PATH=../build/libs/jslt*-all.jar
ARTIFACT=`basename $ARTIFACT_PATH`
set -e
aws s3 cp $ARTIFACT_PATH s3://spt-data-dev-lmg/lambda/jstl2/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public String invoke(String json) {

// now we can do the thing
JsonNode source = NodeUtils.mapper.readTree(input.get("json").asText());
String jslt = input.get("jslt").asText();
String jslt = input.get("jstl").asText();

Expression template = Parser.compileString(jslt);
JsonNode output = template.apply(source);
Expand Down

0 comments on commit f9f08de

Please sign in to comment.