@* * This template takes a single argument, a String containing a * message to display. *@ @(authors: List[BookService.Author], books: List[BookService.Book]) @* * Call the the `main` template with two arguments. The first * argument is a `String` with the title of the page, the second * argument is an `Html` object containing the body of the page. *@ @main("Books Demo") {

Book Catalog

Authors

@if(books == null || books.isEmpty()) { } else {

Books

@for(book <- books) { }
Title Publisher Publication Year In Stock? Number in Stock
@book.Get_title() @book.Get_publisher() @book.Get_year() @book.Get_inStock() @book.Get_numInStock()
} }