Skip to content

Next key features: Templated Writer #962

@Ducasse

Description

@Ducasse

During the massive cleanup of Pillar I kept the PRTemplatedWriter as a reference because while we never put it in production it was clearly the way to go.
Here are the class comments.

I am a pillar document writer that wraps a normal wrapper.
When writing one element, I first check if there is a file in the current template that overrides the default writing. If so, I use that file to template the contents.
Otherwise I simply delegate the writing to the wrapped one.

I am carefully designed so if an element X is delegated to the wrapped writer, it should delegate the writing of X's children back to myself.

I want this feature in Microdown because it will make the template much simple.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions