-
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
new nbSomething apis to evaluate #2
Comments
another use case for nbNext magics: support a document that containes different outputs according to different compile switches! this is a very nice use case (e.g. benchmarking different compilation options). In this use case although it would be even nicer if I am able to make next magics reproducible. mmh, it could be probably done with more next magics (e.g. a nbNextAdd; the content of Add might need to be protected behind a compiler switch; multiple compilations in a specific order should result in the same document after hysteresis sets in). |
nbFold: same as nbCode but code should not be shown (possibility to add a button to unfold?) |
use case from adventofnim:
nbDiv(class="hide"):
nbText:
...
nbCode:
...
... |
related also to #4: nbTest: to but code that might also be extracted for a test file. for example (see #5) I want to do a small utility package for paths. I could have a single file that provides: documentation, testing and library (3 different outputs: 1 html and 2 nim files, heck I could add also md...). |
Edit opened a specific issue (#34) for the following two:
|
trying to list possible new apis that might be useful. Will need to decide if I want to really do them and write example that actually use them before implementing.
nbSkip:
nbOff:
template nbNot(body: untyped) = body
when not defined(nbAllOff)
nbDisc:
nbLib:
nbNimFile(name: string, body: untyped):
nbWriteFile(name: string, text: untyped):
nbTimeIt
nbNextAssign(ident: untyped, eval: untyped):
nbNextReplace(nbThis: untyped, nbThat: untyped):
The text was updated successfully, but these errors were encountered: