Added Code Chunks support

Currently with inline style sheets. That will definitely change soon.
This commit is contained in:
2013-10-02 21:49:55 +02:00
parent 61a60f7cf7
commit 1765929555
9 changed files with 211 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
{% extends 'front_base.html' %}
{% load code_chunks %}
{% block content %}
<div class="code-chunk">
<p class="code-title">{{ codechunk.title }}</p>
{{ codechunk.content|syhilite:codechunk.language }}
{% if codechunk.description %}
<div class="code-description">
{{ codechunk.description|safe }}
</div>
{% endif %}
</div>
{% endblock %}