-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Add option for including code in compiled html output #135
Comments
Lots of possible use cases by different folks but here's my take on it:
|
Thanks for the feedback @jefffriesen!
Agreed; Good point.
I think is more or less what I was coming around to, so thanks for confirming.
Sorry; This probably warrants some explanation. In Reagent, a "hiccup" form can use a function/component as the tag, like Again, thanks for the feedback! |
I've been working on this again for the past several weeks, and one question which has come up is whether or not to show the evaluation results of code blocks or not. If we do, one thing to be careful of is how we handle lazy seqs. This is where clerk's approach of attaching custom renders is somewhat handy. The other way we can go is to just never display anything unless you specify it in a hiccup block, which effectively gives you more nuanced control over how you want things rendered on a case by case basis, but is probably less convenient for "tinkering" and prodding as you work up intuition on a problem. Other thoughts: I'm rethinking not showing the hiccup blocks by default. I think for folks wanting to use Oz as a notebook tool (closer to a conventional notebook) may more often than not want to see the code that generated the the visualizations and such (and importantly, in this context, the visualizations will be embedded in hiccup as |
I don't have strong opinions on the best approach but this sounds right to me:
|
This would be nice for folks who want the sort of notebook where you can see the code alongside the resulting visualizations etc. Would also potentially open up the possibility of using Oz for code documentation, al a marginalia.
Some questions around this:
The text was updated successfully, but these errors were encountered: