PackageTemplate
constructor(reference: String, doctype: DocumentType?, content: String, additionalFiles: FsEntry, enforcesTheme: Boolean = false)
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