-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to use trans in attributes #39
Comments
It is similar with #38 %input{'name':'text', 'type':'text', 'value':'{% trans "Введите значение" %}'} just like raw |
I use HamlPy on a real project, and too often have to fall back to HTML&Django syntax for the issues like this. I think such syntax can fit haml:
I'm not sure if it's easy to read though. |
A more hamlish way would be %tagname{attrname: trans('my text'), another_attribute: variable, dynamic_attr_name => 'static value', dynamic_name => dynamic value} Note, that HamlPy already supports %tagname{attrname: 'my text'} |
Closing this as it's a duplicate to #38 |
I need to inser localized value into input field
%input{'name':'text', 'type':'text', 'value':'localized_value'}
need to be like
How can i do that?
The text was updated successfully, but these errors were encountered: