Inist-CNRS / node-jbj

Like XSL/XML but for JSON.
http://Inist-CNRS.github.io/jbj-playground/
13 stars 3 forks source link

assert action does not work in async mode #3

Closed parmentf closed 9 years ago

parmentf commented 9 years ago

In playground, having

input:

{
    "a": 2
}

stylesheet:

{
    "$val": {
        "assert": "a == 1",
               "set": "ko"
    }
}

gives:

{
 "a": 2,
 "val": "ko"
}

It seems that it works with JBJ.renderSync, but not with JBJ.render.