-
Notifications
You must be signed in to change notification settings - Fork 10
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
nbHtml #28
Comments
To add onto this request, would it be possible to have that block also handle js compiling somehow? This may not even be possible (some of the file is compiled to C, and the rest is compiled to JS?) but I figured I would ask. The use case that I have in mind was to trying using nimib to write documentation for Karax. Ideally, I would be able to have a block that would correspond to an example written in Karax. |
this feature is specifically to introduce an html dsl (and thinking of using the server side part of karax). I like your suggestion and I think it should be added, possibly with a different API ( Open to suggestion on the api (and also PR for implementation :)). |
I will add this here as I think it fits under the general When implementing nimib-reveal I have abused nbText: """<div class="fragment fade-out">"""
body
nbText: """</div>""" to insert HTML code directly into the document. This works most of the time except when it doesn't, it depends on what tags So to sum up, a feature where we can input raw HTML (as a string primarily, but could in addition to that be a DSL as well) and which runs through It should be noted I hadn't realized this was even possible until I saw the source for your paranimib repo and how you inserted the audio player using HTML 😃 |
Yes, I started abusing nbText that way and it is not the way forward. I really need to finish up the block render refactoring which will allow all this (each block will have its own context and a partial among other things) |
Oh, that sounds nice! 🚀 I'm a bit scared of having to refactor everything though 🤣 |
If I get it right it will be easy, I actually plan to start from refactoring all block the way I want them (possibly including neveal's ones) and then implementing the new rendering engine. Will try this afternoon. |
That would be great! I re-read the description in the rendering issue and it sounds like it would satisfy my needs. Making reuse of other blocks' logic ( |
see api examples added here #24 (comment) will add more |
with #80 we added with #88 we added The feature described here is still distinct from the above so I will keep this open. |
a new
nbHtml
block that will expose karax htmldsl and allow to render the html in the document.The text was updated successfully, but these errors were encountered: