This situation often comes up when building navigation menus and designers want a special class to be added to the current page. Some Snippets offer a specialized tpl dedicated to formatting the current resource, but at best this can result in "chunk clutter"; a well crafted output filter would help alleviate this.
Wanted: a "current" class for the current page:
<li class="tab current"><a href="http://somepath.com/page">Page 1</a></li>
So our tpl used to format Snippet output might look like this:
<li class="tab [[+id:equals=`[[*id]]`:default=`current`]]"><a href="[[~[[+id]]]]">[[+menutitle]]</a></li>
Is something like that already possible?
The workaround is writing a quick Snippet with inputs for the id from the other Snippet and the current id.
Thanks!