import { InternalModule } from "../InternalModule" ; import { ModuleName } from "editor/TpDocumentation" ; export class InternalModuleFrontmatter extends InternalModule { public name : ModuleName = "frontmatter" ; async create_static_templates ( ) { } async create_dynamic_templates ( ) { const cache = this . app . metadataCache . getFileCache ( this . config . target_file ) ; this . dynamic_functions = new Map ( Object . entries ( cache ?. frontmatter || { } ) ) ; } }