Skip to content

Feature: Naming dynamic helper objects #988

Open

Description

@chrylis

The ability to use registerDynamicHelper to map class methods onto helpers is extremely helpful, but currently the method name is used with no ability to customize, and all helper methods go into a global namespace. It would be useful to be able to specify a prefix like this:

hbs.registerHelpers("$math.", java.util.Math.class);

and then say

{{ $math.sin(degrees) }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions