extratonal.org website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
260 B

# -*- coding: utf-8 -*-
from lektor.pluginsystem import Plugin
import datetime
class TodayPlugin(Plugin):
name = 'today'
description = u'Whats today.'
def on_setup_env(self, **extra):
self.env.jinja_env.globals['today'] = datetime.datetime.today()