Replies: 1 comment
-
It is even impossible to use syntax highlighting with e.g. highlightjs or pygments for the documentation. E.g. in component-tag docs there is the So while
There are a few options available, how other frameworks like django-components, django-web-components, django-unicorn do it. The last one would be short too *not navigateable means, the IDE doesn't find the templatetag source, as it is dynamic. Especially @samwillis, @ksdme, @almahdi404 Please write your opinions & feedback here, if you find time. |
Beta Was this translation helpful? Give feedback.
-
I think that the {% @ snake_case / %} notation is a bit cumbersome.
{% @ foo / %}
is a bit much of those special chars.ChangePassword
does look like{% ChangePassword user=request.user %}
- FQN{% common.default.ChangePassword user=request.user %}
So I'd like you maybe to consider moving away from the
@
to "normal" names - even the CamelCase2snake_case conversion is not necessary IMHO.Maybe you have had a good plan when designing it, and I don't know about that. And yes, the end tag must be done somehow. ATM this is done with
/@
- which is another special sign....I know that e.g.
{% endcomponent %}
is blunt. Even if Django does something with{% endblocktranslate %}
.{% /Changepassword %}
Could be another option.The ratio for that is: If you use Tetra for more than interactive components, but for building a bigger website out of it, especially
BasicComponent
s, you soon find all the special chars unreadable.@samwillis but I can understand if you tell me that this is too much work... 😄
Beta Was this translation helpful? Give feedback.
All reactions