Skip to content

How do I escape "$" signs when templating happens? #142

@dakusui

Description

@dakusui

I have a following key-value.

{
  "hello": "HELLO",
  "world": "WORLD",
  "value": "eval: $(ref .hello) $(echo $(ref .world))"
}

The intention is to render following element.

 "value": "HELLO $(echo WORLD)"

However, jq-front renders this into :

 "value": "HELLO WORLD"

Because it just considers the given data as a nested command substitution.
How can I define the element to get the desired string?

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions