mirror of
https://github.com/wrabit/django-cotton.git
synced 2025-08-03 14:48:17 +00:00
wip
This commit is contained in:
parent
2126b2ffed
commit
893f166a0d
2 changed files with 10 additions and 5 deletions
|
@ -28,9 +28,14 @@ settings.configure(
|
|||
"django.contrib.messages.context_processors.messages",
|
||||
],
|
||||
"loaders": [
|
||||
"django_cotton.cotton_loader.Loader",
|
||||
"django.template.loaders.filesystem.Loader",
|
||||
"django.template.loaders.app_directories.Loader",
|
||||
(
|
||||
"django.template.loaders.cached.Loader",
|
||||
[
|
||||
"django_cotton.cotton_loader.Loader",
|
||||
"django.template.loaders.filesystem.Loader",
|
||||
"django.template.loaders.app_directories.Loader",
|
||||
],
|
||||
)
|
||||
],
|
||||
"builtins": [
|
||||
"django.templatetags.static",
|
||||
|
|
|
@ -4,8 +4,8 @@ from functools import lru_cache
|
|||
from django import template
|
||||
from django.conf import settings
|
||||
from django.template import Node
|
||||
from django.template.loader import get_template
|
||||
from django.utils.safestring import mark_safe
|
||||
from django.template.loader import get_template
|
||||
|
||||
from django_cotton.utils import ensure_quoted
|
||||
|
||||
|
@ -141,7 +141,7 @@ class CottonComponentNode(Node):
|
|||
|
||||
else:
|
||||
return CottonIncompleteDynamicComponentException(
|
||||
'Cotton error: "<c-component>" should be accompanied by a "is" attribute.'
|
||||
'Cotton error: "<c-component>" should be accompanied by an "is" attribute.'
|
||||
)
|
||||
else:
|
||||
component_path = self.component_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue