If string contents is only a static text, you can try e.g. “tailf:cli-show-template-footer” annotation for yang list.
This is described with more details in the user guide, or man page for tailf_yang_cli_extensions.
Yes, when using cli-show-template-footer() (or -header), you should enable the template display mode using the cli-show-template().
If you don’t want to manually specify all the elements in show template, you can use e.g. “$(item|show)” as the contents of the wrapping show-template.
“item” in this case is the name of container/list that we define the show template for…