| author | Tomas Zeman <tzeman@volny.cz> |
| Thu, 06 Dec 2018 15:19:41 +0100 | |
| changeset 12 | e7512f9dc903 |
| child 13 | 216da61215db |
| permissions | -rw-r--r-- |
package sqwl.cms.layout import scalatags.Text.all._ import scalatags.Text.{TypedTag, tags2} import sqwl.cms._ object PrimaryView extends config { def apply(cnt: iContent, st: ViewState): Option[TypedTag[String]] = st match { case ViewArticle(art) => Some(tags2.section( h1(a(href:=s"/${http.prefix}/${art.pathSegment}", art.title)), raw(art.htmlContent) )) case _ => None } }