M2Doc 4.0.0 and template visibility

Hello,

I just find out that M2Doc 4.0.0 provides the capacity to define a notion of visibility on a template code block.

I assume that it would allow to define a template code block in one word template document, and reuse it in another word template, allowing to mutualize definition of small generic templace code block for different final templates.

However, I do not achieve to do this. The word template that I use for my documentation generation (the one configured in the genconf file) does not recognize the template code block that I can define in orther word template documents.

I guess that I would need to define some import or dependency between the word documents. But I couldn’t find how to do it in the M2Doc reference documentation…

Am I understanding this notion of template block visibility the wrong way?
If not, can you provide an example on how to do it?

Thank you

Hello,

That’s exactly the idea. But it will be implemented when M2Doc will use AQL 8.x. At the moment we are still using AQL 7.x and I don’t know when we will be able to bump the AQL version. I introduced this change because it break the template format and since the support of Office 365 already break the template format I chose to add this in the same version.
In short M2Doc 4.0.0 doesn’t use this information but I hope it will soon be able to extends and import template to reuse and override template constructs.

Hello Yvan,

Thanks for your answer. I will wait to see this feature appear in M2Doc!
It will be a real game changer in order to ensure proper configuration management of template blocks and reuse in different end templates :slight_smile:

2 Likes