Skip to content
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

Bug?: translating attributes that are made of objects properties #85

Closed
martar opened this issue Jul 4, 2012 · 2 comments
Closed

Bug?: translating attributes that are made of objects properties #85

martar opened this issue Jul 4, 2012 · 2 comments

Comments

@martar
Copy link

martar commented Jul 4, 2012

I encounter a fallowing bug:
parcing the line (taking properties of the variable 'user'):
%i.icon-user{'id': 'UserInfo','data-is-staff': '= user.is_stuff', 'data-id':'= user.pk'}
results in

in order to have it worked propetly i made a workaround:
- with user_is_stuff=user.is_stauff user_pk=user.pk
%i.icon-user{'id': 'UserInfo','data-is-staff': '= user_is_stuff', 'data-id':'= user_pk'}

that results in right output:
{% with user_is_stuff=user.is_stauff user_pk=user.pk %}

{% endwith %}

@bcoughlan
Copy link
Collaborator

Hi martar,

This was fixed in #77 a few months ago, so just update your version of HamlPy

Regards,
Barry

@martar
Copy link
Author

martar commented Jul 5, 2012

ok thanks, it works with the repo version of hamlPy. Version on easy_install is old

@martar martar closed this as completed Jul 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants