-
Notifications
You must be signed in to change notification settings - Fork 15
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
Unable to call .length on a List #44
Comments
Thanks for taking a look! |
From the mustache specs:
That said, the following should be sufficient:
|
Is the codebase you are working on open? Maybe I can have a look at the mustache part. |
I'll try that, thanks. I thought Our new dartdoc uses mustache4dart: https://github.com/dart-lang/dartdoc |
Yes you are right. But your code does the same too. I'll have a closer look tomorrow. |
The spec says what to do when you encounter an empty list: "do nothing" aka "kinda falsey". However, the inverse is not true. A non-empty list isn't truthy, it's for iteration. Thanks for taking a look! |
Hi! Can we reopen this issue? It's marked as "wontfix". Thanks! |
I had a look at it. with
I would like to avoid using the |
Thanks! Can you push to pub? I'd love to start using this. |
It looks like this got off my radar. I'll publish a new version today night. |
Thank you! On Sun, Mar 15, 2015, 6:55 AM Georgios Valotasios notifications@github.com
|
Hi,
I'm trying to do this:
Data model:
Template:
In other words, I'd like to check the length of a list to see if there's anything there, so I can render
<ul>
The exception is:
Perhaps IterableMustacheContextDectorator is just dealing with iterables and not lists ?
The text was updated successfully, but these errors were encountered: