-
Notifications
You must be signed in to change notification settings - Fork 14
Remove support for ={...} substitutions or make it optional #16
Comments
I'm not fully at ease with breaking backward compatibility but the fact that this is breaking valid django syntax is a problem. I think that it's there to provide an alternative to ruby's It would be great to see if this syntax is used somewhere but github search seems broken for that: |
Breaking backward compatibility is certainly to be avoided where possible, but I think if we made a 1.0 major release then it could be justified on the basis that:
For the sake of users who have used |
@Psycojoker Github search doesn't support symbol characters apparently. We need to move forward sooner than later on this, and as I see it there are 2 options:
I prefer 1 but am ok with 2 if that's your desire. |
Had a go at option 2 (see https://github.com/Psycojoker/django-hamlpy/compare/master...Psycojoker:optional_sub_syntax?expand=1) tho still feel removing the syntax would be preferable. Your call. What you think? |
Why would you be against option 2 here? You branch seems pretty good (and, while I prefere simplicity, maybe the default option mecanism + option for rendering could be useful for the futur) I would prefer not to break backward compatibility but that's not an ultimate no-go for me in this case. |
I think we have much better chance of adoption and continued use if we are as close to actual HAML as possible. So this is my proposal:
I can turn the branch above into a PR that does 1 and 2. |
Works for me, just add "display a deprecation warning" between 2 and 3. |
Added in #24. Default is that support is continues to be enabled, so no deprecation needed just yet. |
I'm not sure why this was added because it's neither actual HAML or Django. It breaks existing templates where users have used things like
{href: "foo={{ bar }}"}
.I'd like to either remove it for a version 1.0 release, or at least make a way to disable it.
The text was updated successfully, but these errors were encountered: