Search code examples
scalaplayframeworktwirlplay-bootstrap

Scalatags using play-bootstrap


I'm replacing my twirl templates with ScalaTags code, and I ran into a problem. I'm using the Play-Bootstrap library to easily write forms, however the import doesn't work outside of Twirl templates.

import b3.inline.fieldConstructor

I get the error:

not found: object b3

Any suggestions / solutions on how to keep using Play-Bootstrap?


Solution

  • Found the answer myself, thanks to this question.

    import views.html.b3.inline.fieldConstructor