Esempio n. 1
0
def index(request):
    filename = get_path('index.md')
    m = open(filename).read()
    html = markdown_to_html(m, [])
    html = colorify(html)
    return render(request, 'coqindex.html', {'html': html})
Esempio n. 2
0
 def html(self):
     return markdown_to_html(self.body, self.images.all())
Esempio n. 3
0
 def html(self):
     return markdown_to_html( self.reviews, [] )
Esempio n. 4
0
 def html(self):
     return markdown_to_html( self.body, self.images.all() )
Esempio n. 5
0
def index(request):
    filename = os.path.join(settings.STATIC_ROOT, 'coq-index', 'index.md')
    m = open(filename).read()
    html = markdown_to_html(m, [])
    html = colorify(html)
    return render(request, 'coq-index.html', {'html': html})
Esempio n. 6
0
 def html(self):
     return markdown_to_html(self.reviews, [])
Esempio n. 7
0
def index(request):
    filename = get_path('index.md')
    m = open(filename).read()
    html = markdown_to_html(m, [])
    html = colorify(html)
    return render(request, 'coqindex.html', {'html': html})