Created
May 7, 2014 14:33
-
-
Save fringedgentian/75459fec9b3180facaaa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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