kriti-lang icon indicating copy to clipboard operation
kriti-lang copied to clipboard

A minimal JSON templating language

Results 6 kriti-lang issues
Sort by recently updated
recently updated
newest added

I am trying to generate an Elastic search payload using Hasura Rest transformers. Is there a way to return nothing in the `{{else}}` condition? I tried using `{{end}}` directly as...

I have added the conditional (ternary) operator. Syntax ``` {{ condition ? exprIfTrue : exprIfFalse }} ``` Example ``` {{($.event.op == "INSERT") ? "1" : "-1"}} ```

## Current Behaviour For the following Kriti template: ``` {"name": {{$.user.name}}, "age": {{$.user.age}} } ``` If I parse the above template and try to render it using `renderPretty`, I get...

bug

Launching the repl ``` ➜ cabal run kriti-repl Kriti Lang, version 0.3.2: github.com/hasura/kriti-lang/ :? for help > ``` Using it ``` > {{ {"foo": 4} }} { "foo": 4 }...

I am trying to use request body transformation in a Hasura custom action to have the action accept multiple optional parameters, and then deliver a transformed request built from those...

So suppose, if the string is "ABCD EFGH IJKL MNOP", refactor this to "ABCDEFGHIJKLMNOP"