No worries. I too apologize for the delayed response. You are correct
in that I wasn't compiling with the jqm attributes. I still have the
problem if I try to apply the template (with jqm attributes) to the
entire document. It's not stripping them out, but it's definitely not
playing well with the attributes under the parent div (role="page"
div). What I did was I had to break up the rendering of the document
like so:
var $page = $("#myId");
$page.children( ":jqmData(role=header)" ).directives(...).render(data);
$page.children( ":jqmData(role=content)" ).directives(...).render(data);
Works, but I'd prefer not to call render more than once on the page. I
don't notice a performance hit, so I'm not too worried about it.