Skip to content

Specifying a context resolver without a MapValueResolver breaks list psudo-variables #654

@sskrla

Description

@sskrla
val template = hb.compile("{{#values}}{{@index}}{{#values}}")
val json = mapper.parseTree("""{"values": [1, 2]}""")
val ctx = Context
    .newBuilder(json)
    .resolver(JsonNodeValueResolver.INSTANCE /*, MapValueResolver.INSTANCE */)
    .build()
template.apply(ctx) == "12" // fails until MapValueResolver is commented in

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions