stencilproject / Stencil

Stencil is a simple and powerful template language for Swift.
https://stencil.fuller.li
BSD 2-Clause "Simplified" License
2.34k stars 224 forks source link

Invalid dictionary iteration example in docs #208

Closed ivanteresh closed 6 years ago

ivanteresh commented 6 years ago

Hello! In my application i use dictionary iteration, as described on the official docs page:

But, template rendering fails in for key, value in something statement. Than I dive into code of your library and see, that key value pair expects to be written without space after comma, like for key,value in something. So i fixed, and it worked.

Please, actualize your documentation, it will help other people to enjoy dict iteration in your library :)

kylef commented 6 years ago

@ivanteresh which version of Stencil are you using?

ivanteresh commented 6 years ago

@kylef latest, 0.11.0

ilyapuchka commented 6 years ago

This should be fixed with #178

ivanteresh commented 6 years ago

Ok, thx

djbe commented 6 years ago

Closing this as the PR has been merged.