Forum
HTML5 Templates and Perch
I have a question regarding Perch and the HTML5 <template></template>
tag.
An example of my .html markup (redacted for brevity):
<template id="top_template">
<script>
var sheet=(function(){var style = document.createElement('style');document.head.appendChild(style);return style.sheet;})();
sheet.insertRule('.top{padding:0 .5rem .65rem .5rem;}',0);
sheet.insertRule('@font-face{font-family:"Open-Sans-Regular";src:url(data:application/x-font-woff;base64,d09GRk9UVE8AACygAA0AAAAATcQAAQAKAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAABMAAAJRYAAEK3Xqgn3kZGVE0AACZIAAAAHAAAABxu5G/0R0RFRgAAJmQAAAAcAAAAHgAnAFVHUE9TAAAmgAAAAiYAAAQKW6pLAUdTVUIAACioAAAALAAAADC4/7j+T1MvMgAAKNQAAABeAAAAYKE9nsxjbWFwAAApNAAAALUAAAFyfTy6z2hlYWQAACnsAAAAMgAAADYNKJvqaGhlYQAAKiAAAAAgAAAAJA89BRFobXR4AAAqQAAAAQAAAAE8TO8gf21heHAAACtAAAAABgAAAAYAT1AAbmFtZQAAK0gAAAFCAAACInQTDopwb3N0AAAsjAAAABMAAAAg/p0AZnicxXsHlFTVsvYemJ5ugq2EHsI0mSH0AJIle0QyCKg0Ei4XAUEQBQnKVbnSZr3biwqYA6iYGhG4XMCEHEXEiAFbDICImFDUQWSf7tMz+9VX+5zu4a231v/uv/61fhdW15ywQ+3aVV/VrlMgCgtFQUFBjTFXzpx34bR5i0RBNVEghjhR4TSp5jSt7kQK3d21q5fXLmxaUxTe3q6ZlDmmdtDtnr0hGhwVLWoWiIoVp0eFOCNacGadqGgXPftvdUUh2qojIqKpaDtv/rzpC2dOmztn3qWLrpw2Y2aXTl06o9Pm6DXHCPqvQFQT1UVQzBY1RE1RS5wmwuJ0cQY1VFfUE/WpuWLRQDQUjURjUSKiorloKVqJ1qJUtBFtRTvRXsREmeggOopO4kzRWXQRXUU30V30ED3FWaKX6C36iL5ioDhXDBKDxRAxVAwTw8UIMVKMEueJ0WKMGCvOFxeIC8U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sPACA91nYIJrzQOcwdE8xBSNZpM5z5pHuMCb5jHO8aHZwq0RsMowJzy56h06HlCZah7iHneaTeY8aR7hBq+ax7jEu2YLj/jEDhUkCgiEiLgqYFfJQoRRQXygluKInFrNrUyPeURYMi/u6xLONattjr9eAitWZ6xPyB5mDCxVLItE1sIW363E6pjlifBm1P//pX3fUNG07HM8PmpnjL2sVVYWwnO8Hya/LE4OBz59Q3kBl9H24TCt4oipSu5K9kip5uxzuqjirHiyQYA1fGxp7fPac2az36FpqoXrtm3rRFUUH6RT1qmbZ7yqksrdBGt/G/r23JnhC0hbWdsAAHicY2BmAIN/sxjSGLAAAC6BAgIA)format("woff");}',5);
sheet.insertRule('@media(max-width:767px){.border h2{border:none;}}',13);
</script>
<div class="<perch:content id="topclass" label="Top Class" help="Select if Heading has a border, no image, etc (top is default)." type="select" options="top,top border,top padding,top border padding,top border no_padding,top border overflow"/>">
<h2><perch:content id="heading2" type="hidden"/></h2>
</div>
</template>
<div id="top"></div>
<script>
var toptemplate = document.querySelector('#top_template');
var topclone = document.importNode(toptemplate.content,true);
var tophost = document.querySelector('#top');
tophost.appendChild(topclone);
</script>
<perch:help>Save to copy Website Title Level 2 Heading.</perch:help>
I tested this in all current browsers and found that while Edge, FF and Chrome allow the "host" element, i.e. <div id="top"></div>
to be used for styling from within the template itself, IE does not.
At some point, I'd like to use the hosting element rather than have extra markup when IE is no longer supported however will Perch allow this?
Cheers
Perch doesn't care what you want to do in your frontend markup, we just manage the content. You always have control over your templates.
Hi Rachel,
I have (re)moved all
<template></template>
tags and associated scripts to PHP and am only using Perch .html templates for Perch code and the odd<script></script>
and it's performing well.On a general development note, the only issue with using this new coding "paradigm" is IE has problems with styling the containing element; which I will test as I am using
id=""
anddocument.getElementById();
but maybedocument.querySelector();
with aclass=""
will work instead.Thanks again