Skip to content

Partials with context #94

@steidinger

Description

@steidinger

I'm currently evaluating Handlebars.java as a possible micro-template engine for use in a legacy project and so far I'm very impressed. But today I stumbled across a difference between Handlebars.js and Handlebars.java:

Handlebars partials take a second parameter which becomes the context for the partial:
{{> person this}}
Source: Stackoverflow

When I try to do this in Handlebars.java it results in a syntax error. Could this be implemented in Handlebars.java?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions