BootstrapSourceFactory

declslides.application.BootstrapSourceFactory

Produces the bootstrap Scala source executed by the script runner.

The generated source wraps the user script, resolves the presentation, picks the requested renderer, and writes the final document to disk.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def create(userSource: String, declslidesDependency: String, scalaVersion: Option[String]): Either[ApplicationError, String]

Creates the bootstrap source for a user script.

Creates the bootstrap source for a user script.

Attributes

Returns

the generated bootstrap source, or an application error if the template cannot be loaded