-
Notifications
You must be signed in to change notification settings - Fork 10
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
Mixin generates duplicated php codes #109
Comments
Yep, that looks pretty messy. I could put that $__ignore stuff in an own, global variable but then i'd pollute the global scope again :( But maybe I can put that in some kind of |
I just want to leave a note, I didn't forget this. I looked into this and it's actually a real problem. I can decide if I want to make the ignored variables configurable and have it messy or have them static and have it clean. I'm working on a solution, but it will take a while. It's not a bug, it's a cosmetic thing, so it's at the end of my to-do list :) |
Updated composer.json Updated Symfony mb polyfill to 1.2.0 Addressed #100, still not satisfied with the solution (but it works well, for ternary operators at least) Addressed #109, the ignored variables are now a constant Tale\Jade\Compiler\IGNORED_SCOPE_VARIABLES. Define it prior to loading Tale Jade to specify own ignored variables (separated by `:`)
I adressed this in the latest patch. Can you pull *@dev and check if it produces less bloat? I think I even reduced it to less than it has ever been. There's still more possible, working on it :) |
Wow, great work! It's much shorter now. Tale Jade
Outputtedf611a93 (Newest)Size: 1,566 byte
4134b0aSize: 3,828 byte
|
Awesome! Thank you for testing :) |
tale-jade installed via composer today,
and here's the jade file
output
Is it normal? Because if I use more and more mixins, it will be a disaster ..
I tried it on the demo site (http://sandbox.jade.talesoft.io/), it generated a normal code.
The text was updated successfully, but these errors were encountered: