Skip to main contentNedix.io

Templating engines

Jinja

Base64 asset encoder extension

def init(app, settings):
app.jinja_env.add_extension(AssetEncoderProcessor)
return True
class AssetEncoderProcessor(Extension):
def __init__(self, environment):
super().__init__(environment)