What is the data-composer-template attribute for?

108 views
Skip to first unread message

Remo Brunschwiler

unread,
Nov 13, 2012, 3:51:31 AM11/13/12
to terrific...@googlegroups.com
In the generated markup of the tc.module macro, there is a html5 data-composer-template="<templatename>" attribute. 
Is this attribute needed for some of the Terrific functionality?

Remo Brunschwiler

unread,
Nov 13, 2012, 3:55:37 AM11/13/12
to terrific...@googlegroups.com
The data-composer-template attribute contains the currently used template name. This template name is needed by the inspect mode (from the toolbar) to jump directly into the correct module/template view if you click on it. 

The module name itself is extracted from the .mod-foo css class.

Eduard Seifert

unread,
Nov 14, 2012, 10:40:26 AM11/14/12
to terrific...@googlegroups.com
So, there should be no problem, if i remove this attribute on export or tell the client he can delete it, right?

Remo Brunschwiler

unread,
Nov 14, 2012, 11:23:49 AM11/14/12
to terrific...@googlegroups.com
Right! Feel free to remove it… It's really just for the inspect mode… 
Reply all
Reply to author
Forward
0 new messages