Skip to content
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

Refactor renders (fix #24) #35

Closed
wants to merge 13 commits into from
Closed

Refactor renders (fix #24) #35

wants to merge 13 commits into from

Conversation

pietroppeter
Copy link
Owner

@pietroppeter pietroppeter commented May 3, 2021

wip, fix #24

@pietroppeter pietroppeter changed the title Refactor renders Refactor renders (fix #24) Jun 24, 2021
@@ -7,9 +7,11 @@ macro toStr*(body: untyped): string =
proc newBlock*(kind: NbBlockKind, code: string): NbBlock =
# I cannot use this directly in nbBlocks (nbText, nbCode, ...)
# or it will substitute kind and body fields with their values
NbBlock(kind: kind, code: code)
result = NbBlock(kind: kind, code: code)
result.context = newContext(searchDirs = @[]) # searchDirs=@[] gives error, why?
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because @= is understood as an indentifier

@pietroppeter pietroppeter mentioned this pull request Dec 14, 2021
@pietroppeter pietroppeter deleted the refactor-renders branch June 27, 2022 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor rendering
1 participant