public static String document ( ContainerTag htmlTag ) { if ( htmlTag . getTagName ( ) . equals ( "html" ) ) { return document ( ) . render ( ) + htmlTag . render ( ) ; } throw new IllegalArgumentException ( "Only HTML-tag can follow document declaration" ) ; }
Return a complete html document string