Skip to content

Template with JSON parameter #45

@PayasKrishna

Description

@PayasKrishna

Hi,

Thanks for the awesome library. I had been looking for underscore.js functionality in java when I found this! However, I have been trying to use underscore-java to get a functionality similar to following:

.template(_.each(items, function(item) { <Tag> ${item.name} <\Tag> }),
where items is a JSON, for example: "{name: 'ABC', name: 'PQR'}"

The output should be "<Tag> ABC </Tag> <Tag> PQR </Tag>"

Is it possible to achieve this?

Regards
Payas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions