def add_jinja2_ext(pelican):
 if (u'JINJA_ENVIRONMENT' in pelican.settings):
  pelican.settings[u'JINJA_ENVIRONMENT'][u'extensions'].append(AssetsExtension)
 else:
  pelican.settings[u'JINJA_EXTENSIONS'].append(AssetsExtension)

def add_jinja2_ext ( pelican ) : if ( u'JINJA_ENVIRONMENT' in pelican . settings ) : pelican . settings [ u'JINJA_ENVIRONMENT' ] [ u'extensions' ] . append ( AssetsExtension ) else : pelican . settings [ u'JINJA_EXTENSIONS' ] . append ( AssetsExtension )
add webassets to jinja2 extensions in pelican settings .