mirror of
https://github.com/django-components/django-components.git
synced 2025-08-03 13:58:16 +00:00
feat: replacepython html parser djc-core-html-parser (#929)
Co-authored-by: Emil Stenström <emil@emilstenstrom.se>
This commit is contained in:
parent
55bcc11f50
commit
b69c6e6624
10 changed files with 62 additions and 1501 deletions
|
@ -266,10 +266,10 @@ class DynamicExprTests(BaseTestCase):
|
|||
rendered.strip(),
|
||||
(
|
||||
"<!-- _RENDERED SimpleComponent_e258c0,a1bc3f,, -->\n"
|
||||
" <div data-djc-id-a1bc3f></div>\n"
|
||||
" <div data-djc-id-a1bc3f> abc</div>\n"
|
||||
" <div data-djc-id-a1bc3f></div>\n"
|
||||
" <div data-djc-id-a1bc3f> </div>"
|
||||
' <div data-djc-id-a1bc3f=""></div>\n'
|
||||
' <div data-djc-id-a1bc3f=""> abc</div>\n'
|
||||
' <div data-djc-id-a1bc3f=""></div>\n'
|
||||
' <div data-djc-id-a1bc3f=""> </div>'
|
||||
),
|
||||
)
|
||||
|
||||
|
@ -345,11 +345,11 @@ class DynamicExprTests(BaseTestCase):
|
|||
rendered.strip(),
|
||||
(
|
||||
"<!-- _RENDERED SimpleComponent_6c8e94,a1bc3f,, -->\n"
|
||||
" <div data-djc-id-a1bc3f> lorem ipsum dolor </div>\n"
|
||||
" <div data-djc-id-a1bc3f> lorem ipsum dolor [{'a': 1}] </div>\n"
|
||||
" <div data-djc-id-a1bc3f> True </div>\n"
|
||||
" <div data-djc-id-a1bc3f> [{'a': 1}, {'a': 2}] </div>\n"
|
||||
" <div data-djc-id-a1bc3f> {'a': 3} </div>"
|
||||
' <div data-djc-id-a1bc3f=""> lorem ipsum dolor </div>\n'
|
||||
' <div data-djc-id-a1bc3f=""> lorem ipsum dolor [{\'a\': 1}] </div>\n'
|
||||
' <div data-djc-id-a1bc3f=""> True </div>\n'
|
||||
' <div data-djc-id-a1bc3f=""> [{\'a\': 1}, {\'a\': 2}] </div>\n'
|
||||
' <div data-djc-id-a1bc3f=""> {\'a\': 3} </div>'
|
||||
),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue