TemplateManifest

@Serializable
data class TemplateManifest(val doctype: String? = null, val content: String, val additionalFiles: List<String> = emptyList(), val enforceTheme: Boolean = false)

Declaration that makes a package usable as a project template, as declared in the template table of its manifest.

Parameters

doctype

document type of projects created from this template, as a Quarkdown document type name (plain, paged, slides, docs), or null to let the user choose

content

path, relative to the package root, of the Quarkdown file whose text becomes the initial content of the new project's main file

additionalFiles

paths, relative to the package root, of files copied as-is into the new project at the same relative path, declared as additional-files

enforceTheme

whether the template's own theme must be kept, declared as enforce-theme: when true, the project creator never emits a .theme call

Constructors

Link copied to clipboard
constructor(doctype: String? = null, content: String, additionalFiles: List<String> = emptyList(), enforceTheme: Boolean = false)

Properties

Link copied to clipboard
@SerialName(value = "additional-files")
val additionalFiles: List<String>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "enforce-theme")
val enforceTheme: Boolean