I have two objects bookmark, bookmarks, i want to pass object as parameters to Scala Templates like
return ok(views.html.bookmarks.list.render(bookmark, bookmarks));
in F.Promise,
public static F.Promise<Result> get(final String id) {
F.Promise<Bookmark> bookmark = Bookmark.findById(id);
F.Promise<Collection<Bookmark>> bookmarks = Bookmark.findAll();
// here how to write the code that should pass both objects to scala template
}
How to write the return statement to pass these two objects in F.Promise without Json Result?