Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect scala list rendering in Mustache template #352

Closed
volisoft opened this issue Sep 15, 2016 · 0 comments
Closed

Incorrect scala list rendering in Mustache template #352

volisoft opened this issue Sep 15, 2016 · 0 comments
Labels

Comments

@volisoft
Copy link

volisoft commented Sep 15, 2016

Mustache template displays 'List()' for empty list and concatenates list elements for nonemptylist.

Expected behavior

Block with empty list should not be displayed.
Elements of nonempty list should be displayed consequently.

Actual behavior

Empty list is displayed as List()
Elements of nonempty list are concatenated into one string.

Steps to reproduce the behavior

Have a mustache template with following block:

{{#list}}
    <div>
        <ul>
            <li><a href="{{.}}">{{.}}</a></li>
        </ul>
    </div>
 {{/list}}

Pass both empty and nonempty scala list to the model.

@volisoft volisoft changed the title Incorrect list rendering in Mustache template Incorrect scala list rendering in Mustache template Sep 15, 2016
@cacoco cacoco added the backlog label Aug 22, 2017
@cacoco cacoco closed this as completed May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants