Commit 7fe670b7 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Added option to add intro

parent 6d343c05
......@@ -4,9 +4,13 @@ package nl.lumc.sasc.biopet.core.report
* Created by pjvan_thof on 4/8/15.
*/
case class ReportSection(location: String,
args: Map[String, Any] = Map()) {
args: Map[String, Any] = Map(),
intro: Option[String] = None) {
def render(args: Map[String, Any]): String = {
ReportBuilder.renderTemplate(location, args ++ this.args)
(intro match {
case Some(template) => ReportBuilder.renderTemplate(location, args ++ this.args)
case _ => ""
}) + ReportBuilder.renderTemplate(location, args ++ this.args)
}
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment