def init_app(self, app):
    if (not hasattr(app, 'extensions')):
        app.extensions = {}
    app.extensions['moment'] = _moment
    app.context_processor(self.context_processor)
def init_app(self, app):
    if (not hasattr(app, 'extensions')):
        app.extensions = {}
    app.extensions['moment'] = _moment
    app.context_processor(self.context_processor)