Exemple #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})
Exemple #2
0
 def html(self):
     return markdown_to_html(self.body, self.images.all())
Exemple #3
0
 def html(self):
     return markdown_to_html( self.reviews, [] )
Exemple #4
0
 def html(self):
     return markdown_to_html( self.body, self.images.all() )
Exemple #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})
Exemple #6
0
 def html(self):
     return markdown_to_html(self.reviews, [])
Exemple #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})