portal.default.mint.feed.nicnames.vm Maven / Gradle / Ivy
#macro(displayField $key $tag)
#set($valueList = $doc.getList($key))
#if($valueList)
#if($valueList.size())
#foreach($value in $valueList)
<$tag>$value$tag>
#end
#else
<$tag>$valueList$tag>
#end
#end
#end
#set($noLayout = true)
#set($docs = $self.getFeed().getJsonList("response/docs"))
#foreach($doc in $docs)
#displayField("surname" "surname")
$doc.getList("firstName").get(0)
$doc.getList("secondName").get(0)
#displayField("nameTitle" "title")
$doc.getList("email").get(0)
##$doc.toString()
#end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy