There's not a built-in way to do this, but I've added it to the Issue Tracker for v5.0.1:
http://quest.codeplex.com/workitem/917In the meantime, you could customise the "OpenObject" and "CloseObject" functions, and get them to check for a custom attribute on your object. If the attribute exists, print it, if not then print the existing DynamicTemplate expression. I can give you step by step instructions, or you might prefer to wait for v5.0.1 - which I'll hopefully get started on this week so should be available pretty soon.