Replies: 1 comment
-
|
There are a few approaches you can consider here: There's no Workarounds for avoiding JS duplication in templates:
The To reply, just mention @dosu. Docs are dead. Just use Dosu. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I used to be creating a lot of templates derived from rendernotes, and I actually needed them (I think) to have their implementations do have the subnotes duplicated.
But now, I want to use external libraries, let's say charts.js for the sake of the example, and I don't need it to be copied as a child of the HTML note that will be rendered, I just need a clone of it.
But templates works by duplicating things.
So is there a workaround?
Is it possible to tag a javascript note with something like "#appJS" like we have "#appCSS" ?
PS: Just realized that the best workaround so far would be a "~onNoteCreated=cloneJSExternalLibraryToHTMLNote.js" kind of approach, no?
Beta Was this translation helpful? Give feedback.
All reactions