You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Guo, Jiaqi" <cy...@gmail.com> on 2005/12/22 21:55:55 UTC
[m2]site: How to include some javascript in HTML head
Hi there,
This can be done by adding <head> tag in each xdoc in maven1.0. What's
the solution for it in maven2?
I noticed the following code in maven-site.vm within site plugin.
#if ( $decoration.body.head )
#foreach( $item in $decoration.body.head.getChildren() )
#if ( $item.name == "script" )
$item.toUnescapedString()
#else
$item.toString()
#end
#end
#end
However no matter if addding <head> tag into site.xml or xdoc, I got no
luck. So what is the right thing to do?
Thanks in advance.
Regards
Jiaqi
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org