17 lines
396 B
Python
17 lines
396 B
Python
from xml.dom.minidom import parse
|
|
from dynastie.generators.generator import DynastieGenerator
|
|
from django.db import models
|
|
|
|
class Index(DynastieGenerator):
|
|
|
|
def generate(self, blog, src, output):
|
|
from dynastie.models import *
|
|
articles = Article.objects.all()
|
|
|
|
dom = parse(src + '/_index.html')
|
|
|
|
for node in dom.NodeList:
|
|
print node
|
|
|
|
return
|