-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Options to change the code template #12
Comments
Can you give me an example of what you want to achieve? |
@javiercf In many situations I find that the demo code needs to be more complicated than the codeblock. It would be nice to have some control over the way the block is handled. |
Simply allow us to set the template as a string of HTML. Your current template shows us the formatted code, and inserts the rendered Component. It would be nice if those two things could be replaced by placeholders in our template string. For example |
I'm using handlebars above, but use any method you like. |
@mrbinky3000 I was thinking something more along the lines of convention on the language/render declaration:
However I do like the idea of being able to decide where the component is rendered:
Or something along those lines... |
I think if we support a custom template for the code source and executed, we'll need to add an option in the loader that would go into the webpack config. |
Thanks for creating this. It's almost exactly what I was looking for.
How do you pass your own custom template to wrap the rendered tag and the html source?
The text was updated successfully, but these errors were encountered: