Page layout

all pages should start with a 1st heading. which is turned into the page title.

prxth.fn.useTemplateElement = (args)=>{
	//args.id = args.id || "template";
	let useTemplateNodeName =
		(args&&args.id) ? args.id : false;
	//console.log( useTemplateNodeName );
	if(!useTemplateNodeName) return false;
	
	let template = document.querySelector(useTemplateNodeName);
	let TemplateParts_lone = {};
	let clone = document.importNode(template.content, true);

	Array.from(clone.querySelectorAll("[data-tParts]"), (Element)=>{
		TemplateParts_lone[ Element.dataset.tparts ] = Element;
		//console.log(Element.innerText);
	});
	return TemplateParts_lone;
};

Page layout

all pages should start with a 1st heading. which is turned into the page title.

	Heading
	======
	Selection

Page layout

all pages should start with a 1st heading. which is turned into the page title.

	Heading
	======
	Selection