UNPKG

kompendium

Version:

Documentation generator for Stencil components

2 lines 642 B
import{r as t,h as s}from"./p-9UrzenzW.js";const i=class{constructor(s){t(this,s);this.setRoute=this.setRoute.bind(this)}connectedCallback(){window.addEventListener("hashchange",this.setRoute);this.setRoute()}disconnectedCallback(){window.removeEventListener("hashchange",this.setRoute)}setRoute(){this.route=location.hash.replace("#","")}render(){this.findGuide();return s("kompendium-markdown",{key:"8df12c70deaae9f377a9e0674b7f274bc62076df",text:this.text})}findGuide(){const t=this.data.guides.find((t=>t.data.path+"/"===this.route));if(t){this.text=t.content}}};export{i as kompendium_guide}; //# sourceMappingURL=p-93f0548d.entry.js.map