base/src/sqwl/cms/FsArticle.scala
author Tomas Zeman <tzeman@volny.cz>
Tue, 11 Dec 2018 21:37:53 +0100
changeset 17 0ebcd5464503
parent 16 4556852613a9
permissions -rw-r--r--
Import cleanup

package sqwl.cms

import java.nio.file.Path

trait FsArticle extends iArticle {

  protected def contentPath: Path
  protected def encoding: String = "UTF-8"

  override def htmlContent: String =
    readFile(contentPath, encoding) getOrElse ""
}