svelte-docs icon indicating copy to clipboard operation
svelte-docs copied to clipboard

Template?

Open jmsunseri opened this issue 4 years ago • 3 comments

Is there a way to create a common template that all examples will be nested inside of? My issue is that I have a component somewhere in the tree do a setContext command to set a theme file and then my individual components do a getContext to pull in the theme I'd like to not have every example repeat <ThemeContext> ... </ThemeContext>

jmsunseri avatar Jan 26 '21 05:01 jmsunseri

Currently no. I will implement it in future version, I think.

AlexxNB avatar Jan 26 '21 06:01 AlexxNB

Can I help?

jmsunseri avatar Jan 26 '21 07:01 jmsunseri

Thanks, will see when I'll start reworking.

AlexxNB avatar Jan 26 '21 07:01 AlexxNB