'Only useful in html, mydict is dictionary of src:type pairs will
be rendered as <script type=\'text/type\' src=src></script>'

def scripts(self, mydict):

    if isinstance(mydict, dict):
        for (src, type) in mydict.items():
            self.script('', src=src, type=('text/%s' % type))
    else:
        raise TypeError('Script    should    be    given    a    dictionary    of    src:type    pairs.')
