Last active
December 15, 2015 03:48
-
-
Save literatibr/5196621 to your computer and use it in GitHub Desktop.
Diferença de foreach e map nos templates Play Framework 2.0+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(artigos: Vector[models.Artigo]) | |
<h3>@artigos.length Artigos Cientificos</h3> | |
<ul> | |
@artigos.foreach{ artigo => | |
<li> | |
<a href="/artigo/@artigo.codigo/"> | |
@artigo.titulo | |
</a> | |
</li> | |
} | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment