Microdown icon indicating copy to clipboard operation
Microdown copied to clipboard

Next key features: Templated Writer

Open Ducasse opened this issue 6 months ago • 0 comments

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.

Ducasse avatar Aug 08 '25 16:08 Ducasse