How can I hook on scripts and CSS into <head>?

前端 未结 3 1822
迷失自我
迷失自我 2021-01-01 02:37

The thing with the module I am making is that it kind of generates a javascript snippet, so I cannot use an action to just hook that into the section of the HTML since the

3条回答
  •  醉酒成梦
    2021-01-01 03:08

    Alan Storm's solution works but you might want to include your script or html data in a template file to keep it separate from the XML.

    
    
        
            
                
            
        
    
    

提交回复
热议问题