Source

django-markupmirror / markupmirror / urls.py

Full commit
from __future__ import absolute_import, unicode_literals

from django.conf.urls import url
from django.views.generic.base import TemplateView

from markupmirror.views import MarkupPreview


__all__ = ('preview',)


urlpatterns = [
    '',
    url(r'^preview/$', MarkupPreview.as_view(), name='preview'),
    url(r'^base/$',
        TemplateView.as_view(
            template_name='markupmirror/preview.html'),
        name='base'),
]


# Default namespace registration for include('markupmirror.urls.preview')
# (urlpatterns, app_name, namespace)
preview = (urlpatterns, 'markupmirror', 'markupmirror')