mb@mb
7 years ago
4 changed files with 17 additions and 0 deletions
@ -0,0 +1 @@ |
|||||
|
from .stream import * |
Binary file not shown.
@ -0,0 +1,16 @@ |
|||||
|
#!/usr/bin/env python |
||||
|
# -*- coding: utf-8 -*- # |
||||
|
|
||||
|
from pelican import signals |
||||
|
from os import listdir |
||||
|
from os.path import isfile, join |
||||
|
|
||||
|
def getStream(page): |
||||
|
dir = 'content/stream' |
||||
|
images = [f for f in listdir(dir) if isfile(join(dir, f))] |
||||
|
print('>>> The stream is streaming!', images) |
||||
|
page.stream = 'jaja' |
||||
|
|
||||
|
def register(): |
||||
|
signals.page_generator_finalized.connect(getStream) |
||||
|
# signals.article_generator_finalized.connect(getStream) |
Binary file not shown.
Loading…
Reference in new issue