Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the syntax for passing an array into a view, in the Play framework?

When passing non string arguments, I tag the view with the following first line:

@(name: String,country: String)

to signal the framework that two arguments should be passed into it.

How do I signal that I'm waiting for a String[] argument?

like image 949
blueberryfields Avatar asked Nov 30 '22 22:11

blueberryfields


1 Answers

In scala, this is written Array[String], not String[]

like image 99
Didier Dupont Avatar answered Jan 05 '23 00:01

Didier Dupont