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})
def html(self): return markdown_to_html(self.body, self.images.all())
def html(self): return markdown_to_html( self.reviews, [] )
def html(self): return markdown_to_html( self.body, self.images.all() )
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})
def html(self): return markdown_to_html(self.reviews, [])