Skip to content

Instantly share code, notes, and snippets.

@fringedgentian
Created May 7, 2014 14:33
Show Gist options
  • Save fringedgentian/75459fec9b3180facaaa to your computer and use it in GitHub Desktop.
Save fringedgentian/75459fec9b3180facaaa to your computer and use it in GitHub Desktop.
In Controller:
def articleDetail(article: Article, page: Int)(implicit request: play.api.mvc.Request[Any]): Result = {
Ok(views.html.mobile.article(article, page))
}
In article template:
@(article: drupalslick.data.Article, page: Int)(implicit request: play.api.mvc.Request[Any])
@main() {
//article html
}
In main template:
@()(content: Html = Html(""))(implicit request: play.api.mvc.Request[Any])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment