FileRenderer
ContentRenderer is responsible for preparing and rendering the contents of files. It utilizes the Dataview API for data retrieval and an ExtractorDelegator for content extraction. It may extract the contents of specified files or files determined by a specified strategy
Methods
prepareContents()
Higher-level extraction method where a specified strategy determines the files to be processed, then prepares and renders their contents.
Parameters
Parameter | Type | Description |
---|---|---|
strategy ? | StrategyMetadata | The extraction strategy to be used |
Returns
A Promise that resolves to a FileContents object containing the prepared data
Source
source/retrieve/ContentRenderer.ts:37
prepareFileContents()
Prepares the contents of a file for rendering. This method extracts relevant data from the file, including metadata and content based on the specified strategy and evergreen status. It then formats this data into a structured object including the title, contents, and any block reference substitutions.
Parameters
Parameter | Type | Description |
---|---|---|
file ? | TFile | The file to be processed. |
strategy ? | StrategyMetadata | The extraction strategy metadata to be used. |
Returns
A Promise that resolves to a FileContents object containing the prepared data.
Source
source/retrieve/ContentRenderer.ts:102
Generated using typedoc-plugin-markdown and TypeDoc