Zuriar
Zuriar

Reputation: 11764

where is this 'helper' imported from in Play Framework

I am reviewing the Activator websockets template and there is the following view:

@(message: String)(implicit request: RequestHeader)

@import helper._

@main("Websocket Stateless DEMO") {

where is this 'helper' import coming from?

thanks

Upvotes: 0

Views: 172

Answers (1)

Daniel Olszewski
Daniel Olszewski

Reputation: 14401

If you look at Rendering an <input> element section in the documentation, you'll find out that all helpers are placed at the views.html.helper package. Since the view you mentioned is located in the views.html package the import can be relatively shorter.

Upvotes: 1

Related Questions