diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2017-03-12 23:00:58 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2017-03-12 23:00:58 +0100 |
commit | 09e858a7e219da7afdfa63024ce1110ffc686b81 (patch) | |
tree | 6c097d0eeb276ad8f1f111f92958e43d42b89167 /templates | |
parent | 67049cf50145d179652bd678269e9f6251643e00 (diff) |
Added support for rendering markdown.
If a syntax name starts with 'Rendered ' (lazy fix, we'll come up with
something better later) the paste will now be handled by the
corresponding renderer. For now we only support markdown, but this can
easily be extended to support other renderers as well.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/view.tmpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/view.tmpl b/templates/view.tmpl index 445a1ad..a23c36e 100644 --- a/templates/view.tmpl +++ b/templates/view.tmpl @@ -18,6 +18,12 @@ <a href="/raw/$hash">Download as plain text</a> #end if </div> +#if $rendered + <div class="paste-rendered"> +#end if $text +#if $rendered + </div> +#end if </div> #end def |