Skip to content

Support sub-expressions #25

@alifeee

Description

@alifeee

sub-expressions are very useful. They are supported by handlebars -> https://handlebarsjs.com/guide/expressions.html#subexpressions

image

For example, to use a "equality helper" in an "if helper"

{{#if (eq var1 var2)}}
  they are equal!
{{else}}
  they are not equal!
{{/if}}

I can try to help, but I am not really sure which piece of code to start with, as this is quite a generic request. It does not seem as if there is one part that "renders" the contents of the inside of a bracket, and one would have to do it oneself, per helper.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions