How do I load a chunk of javascript to be used with my action form in MoinMoin?

StackOverflow https://stackoverflow.com/questions/16992222

  •  31-05-2022
  •  | 
  •  

문제

I've created a moin-moin action, and would like to add some javascript-y animations to it.

That means that my form would require some javascript libraries to be loaded.

How do I instruct moinmoin to load some (external) javascript libraries when it serves the form for my action?

도움이 되었습니까?

해결책

if you did an action plugin, it has complete control over the output (http headers and body), so you can do whatever you want.

so, just create some html that loads your js and let your action emit it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top