UNPKG

@ptkdev/svelte-kit-ssr-boilerplate

Version:

Svelte server-side-rendering built with SEO in mind. Start your project with this friendly svelte kit boilerplate

2 lines (1 loc) 2.22 kB
import{S as a,i as s,s as r,p as e,j as t,e as i,t as o,q as n,l as c,c as h,a as d,b as f,d as l,o as m,r as p,f as $,g,h as v,w as u,x as w,y as E}from"../../chunks/vendor-57a96aae.js";import{M as b,F as D}from"../../chunks/footer-738e4beb.js";function y(a){let s,r,y,I,x,V,j,C,O,T,k,A,L,P,R,S,U,W,Y,q,F,H,M,N,z,B=a[0].wild+"";return s=new b({}),N=new D({}),{c(){e(s.$$.fragment),r=t(),y=i("div"),I=i("section"),x=i("div"),V=i("div"),j=i("h1"),C=o("Wildcard!"),O=t(),T=i("div"),k=i("p"),A=o("Anything in the URL after "),L=i("code"),P=o("/wild/"),R=o(" is shown below as message. That's found in the "),S=i("code"),U=o("params.wild"),W=o(" prop."),Y=t(),q=i("p"),F=o("Your message is: "),H=o(B),M=t(),e(N.$$.fragment),this.h()},l(a){n(s.$$.fragment,a),r=c(a),y=h(a,"DIV",{id:!0});var e=d(y);I=h(e,"SECTION",{class:!0});var t=d(I);x=h(t,"DIV",{class:!0});var i=d(x);V=h(i,"DIV",{class:!0});var o=d(V);j=h(o,"H1",{class:!0});var m=d(j);C=f(m,"Wildcard!"),m.forEach(l),o.forEach(l),i.forEach(l),t.forEach(l),O=c(e),T=h(e,"DIV",{class:!0});var p=d(T);k=h(p,"P",{});var $=d(k);A=f($,"Anything in the URL after "),L=h($,"CODE",{});var g=d(L);P=f(g,"/wild/"),g.forEach(l),R=f($," is shown below as message. That's found in the "),S=h($,"CODE",{});var v=d(S);U=f(v,"params.wild"),v.forEach(l),W=f($," prop."),$.forEach(l),Y=c(p),q=h(p,"P",{});var u=d(q);F=f(u,"Your message is: "),H=f(u,B),u.forEach(l),p.forEach(l),e.forEach(l),M=c(a),n(N.$$.fragment,a),this.h()},h(){m(j,"class","title"),m(V,"class","container"),m(x,"class","hero-body"),m(I,"class","hero is-medium is-primary is-bold"),m(T,"class","content has-text-centered"),m(y,"id","container")},m(a,e){p(s,a,e),$(a,r,e),$(a,y,e),g(y,I),g(I,x),g(x,V),g(V,j),g(j,C),g(y,O),g(y,T),g(T,k),g(k,A),g(k,L),g(L,P),g(k,R),g(k,S),g(S,U),g(k,W),g(T,Y),g(T,q),g(q,F),g(q,H),$(a,M,e),p(N,a,e),z=!0},p(a,[s]){(!z||1&s)&&B!==(B=a[0].wild+"")&&v(H,B)},i(a){z||(u(s.$$.fragment,a),u(N.$$.fragment,a),z=!0)},o(a){w(s.$$.fragment,a),w(N.$$.fragment,a),z=!1},d(a){E(s,a),a&&l(r),a&&l(y),a&&l(M),E(N,a)}}}function I(a,s,r){let{params:e={wild:""}}=s;return a.$$set=a=>{"params"in a&&r(0,e=a.params)},[e]}export default class extends a{constructor(a){super(),s(this,a,I,y,r,{params:0})}}