Esempio n. 1
0
def cdn_snippet(args):
    """ show embedded html snippets for using package via CDN """
    check_package(args.package)
    pkg = base.get_instance(args.package)
    try:
        pkg.snippet()
    except NotImplementedError:
        print "Sorry, there's no CDN hosting the library."
Esempio n. 2
0
def install_package(args):
    """ install package """
    check_package(args.package)
    pkg = base.get_instance(args.package)
    if args.min:
        pkg.minified()
    else:
        pkg.dev()