Skip to content

Commit

Permalink
Now that we support loading filters from standard Django template lib…
Browse files Browse the repository at this point in the history
…raries, the coffin.contrib.markup module is wholly unnecessary.
  • Loading branch information
miracle2k committed Mar 10, 2010
1 parent 5e0f67a commit 805b967
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 33 deletions.
Empty file removed coffin/contrib/markup/__init__.py
Empty file.
Empty file removed coffin/contrib/markup/models.py
Empty file.
Empty file.
15 changes: 0 additions & 15 deletions coffin/contrib/markup/templatetags/markup.py

This file was deleted.

18 changes: 0 additions & 18 deletions tests/test_contrib.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
from coffin.common import env
from django.template import Template, Context


def test_markup():
from coffin.template import add_to_builtins as add_to_coffin_builtins
from django.template import add_to_builtins as add_to_django_builtins
add_to_coffin_builtins('coffin.contrib.markup.templatetags.markup')
add_to_django_builtins('coffin.contrib.markup.templatetags.markup')

# Make sure filters will be available in both Django and Coffin.
# Note that we do not assert the result - if markdown is not installed,
# the filter will just return the input text. We don't care, we simple
# want to check the filter is available.
env.from_string('{{ "**Title**"|markdown }}').render() # '\n<p><strong>Title</strong>\n</p>\n\n\n'
Template('{{ "**Title**"|markdown }}').render(Context())


def test_syndication():
from django.http import HttpRequest
fake_request = HttpRequest()
Expand Down

0 comments on commit 805b967

Please sign in to comment.