PackageTemplate

class PackageTemplate(val reference: String, val doctype: DocumentType?, val content: String, val additionalFiles: FsEntry, val enforcesTheme: Boolean = false)

A package that declares itself a project template, resolved and downloaded into what the project creator needs from it.

Parameters

reference

the reference as typed by the user, re-emitted as .include {reference} in the new project

doctype

document type the template declares, or null to let the user choose

content

text that becomes the main file's initial content

additionalFiles

root of an in-memory directory holding the files to copy into the project, each at its package-relative path

enforcesTheme

whether the template keeps its own theme, so that the new project must not declare a .theme

See also

Constructors

Link copied to clipboard
constructor(reference: String, doctype: DocumentType?, content: String, additionalFiles: FsEntry, enforcesTheme: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard