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

add convenience template to add a script to head section #165

Open
pietroppeter opened this issue Jan 26, 2023 · 0 comments
Open

add convenience template to add a script to head section #165

pietroppeter opened this issue Jan 26, 2023 · 0 comments
Labels
2023H1 good first issue Good for newcomers
Milestone

Comments

@pietroppeter
Copy link
Owner

I always forget how to to do it, this works:

template nbUseJs(url: string) =
  nb.partials["head"] &= '\n' & "<script src=\"" & url & "\"></script>"
@pietroppeter pietroppeter added this to the 2023H1 milestone Feb 1, 2023
@pietroppeter pietroppeter added the good first issue Good for newcomers label Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2023H1 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant