def packageToHmtl(package):
    """return html for package content.

    it use better technic than javaClassToFile
    """
    packageContent = dirPackage(package)
    lst = [tag('h1', 'Package %s' % tag('b', '%s' % (package.__name__)))]
    lnkClass = tag('a', '%s',  target='packgeMember', href='%s.html')
    lnkPkg = tag('a', '%s', href='%s.html')
    pack = [p.__name__ for p in filter(isjpackage, packageContent)]
    if len(pack):
        lst += [tag('h2', 'package list:')]
        lst += List([lnkPkg % (p,p) for p in pack], 'ul', Class='ind0')
    classes = [p.__name__ for p in filter(isjclass, packageContent)]
    if len(classes):
        lst += [tag('h2', 'class list:')]
        linkList = [lnkClass % (p,p) for p in classes]
        lst += List(linkList, 'ul', Class='ind0')
    return baseHtml(package.__name__, join(lst, '\n%s' % (' '*4)))
return html for package content.

    it use better technic than javaClassToFile
    
recipes/Python/502222_Creating_javclass/recipe-502222.py