def renderTemplate()

in scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript/MustacheUtils.scala [19:24]


  def renderTemplate(namespace: String, template: String, data: Any): String = {
    val sw = new StringWriter()
    val mustache = templateCache.getOrElseUpdate(template, compileTemplate(namespace, template))
    mustache.execute(sw, data).flush()
    sw.toString
  }