eval

fun ContentSource.eval(enclosingContent: ReadingBatContent, variableName: String = "content"): ReadingBatContent

Loads and evaluates a remote ContentSource (e.g., a GitHubContent file) as a Kotlin script, returning the resulting ReadingBatContent. The DSL file must define a variable with the given variableName (defaults to "content") that holds the ReadingBatContent result.