From a earlier post (http://forums.adobe.com/message/5395368) it is mentioned that global.jsp can be updated with extra code to avoid getting CQ decoration tags in publish instance . However when I tried it with a simple example , decoration tags with substrings 'parsys' or 'parbase' get removed but still some extra divs gets appended in place.So the case I tested is ,
My template page component is testpage.jsp which simply has a cq:include for a parsys apart from inclusion of global.jsp . Then I have a simple dialog component (block.jsp and a clientlib for css) which I dragged and dropped in to the parsys .Block.jsp has three simple divs enclosed in a div .
The markups which were generated are as follows . The div's in bold are the extra one's being generated .
I haven't had time to throughly test this, but if you'd like to preserve the editing functionality in author mode, and disable the extra CQ wrapper divs in publish, you might try creating your own global.jsp (since it's likely included in every one of your jsp files) with the following:
To implement, you would put this file under a place like /apps/[project name]/components/global.jsp, and in each component you wanted this behavior (or all components ideally, to keep everything standard) you would change <%@include file="/libs/foundation/global.jsp" %> to <%@include file="/apps/[project name]/components/global.jsp" %>.
Let me know if this works for you (and I'll finishing implementing as well) 🙂