model_processor
¶
process_fields(entry, string_processors)
¶
Apply string processors to all entry fields except skipped technical fields.
Why
Entry fields need markdown parsing and formatting, but dates, DOIs, and URLs must remain unprocessed for correct linking and formatting. Field- level processing enables selective transformation.
Parameters:
-
entry(Entry) –Entry to process (model or string).
-
string_processors(list[Callable[[str], str]]) –Transformation functions to apply.
Returns:
-
Entry–Entry with processed fields.
Source code in src/rendercv/renderer/templater/model_processor.py
process_model(rendercv_model, file_type)
¶
Pre-process CV model for template rendering with format-specific transformations.
Why
Templates need processed data, not raw model. This applies markdown parsing, keyword bolding, connection formatting, date rendering, and entry template expansion before templates execute.
Parameters:
-
rendercv_model(RenderCVModel) –Validated CV model.
-
file_type(Literal['typst', 'markdown']) –Target format for format-specific processors.
Returns:
-
RenderCVModel–Processed model ready for templates.