Pelican Plugin - How to add context variables?

I am making a pelican plugin and I'm having trouble adding variables to the templates.

For example in my plugin's code:

def baz(generator): = 'bar'

def register():

And in my templates I have:

<h1>lorem - {{foo}}</h1>

And I would expect lorem - bar to show in the <h1>.

I have been looking at trying to see how I can add this as an environment variable to no avail. Any help is much appreciated.


What I needed was

generator.context['foo'] = 'bar'

Need Your Help

Amazon S3 and PHP

php codeigniter amazon-s3

I am building an admin side of an application. It has a page that displays the all images from an amazon s3 folder. Page displays 10 images at a time. So the case is that I have to send 10 request to