-
Notifications
You must be signed in to change notification settings - Fork 58
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
import
tag for reusable macros
#111
Conversation
I'm not sure with xcodeproj changes. |
I don't think we've ever used |
It might be better to undo the changes from |
@djbe thanks for your help. I reverted the changes from Fixed with usage of cocoa pods 1.6 pre release |
thank you guys! I totally forgot about this <3 |
Sorry the PR is not working as expected. While I was testing the import Tag with Sourcery I figured that the loaded template is not populated to the context and therefore the macros are not visible. |
sorry but I think I may not be of great help now, too many months since I created that node, but I keep using it daily and without any problem so it should be something minor; if I do remember properly the trick My usage, is like this :
|
Ok sorry my
there is no flatten , maybe this helps |
import
tag for reusable macros
@cornr I've made a separate PR that updates cocoapods & swiftlint (#112), which has been merged. You should rebase this PR on master to get those changes. Do note that if you run |
@nferruzzi your code does not work with the current Stencil Release as its using a non open function: @djbe I wonder why the usage of the |
The difference is subtle, but quite important:
Surrounding the render with a context push causes all changes during that render (such as creating macro's, setting variables, etc…) to only be applied temporarily, and "popped" away when the render is done. |
The current implementation was broken, because it was applying the changes to I've updated the implementation and written tests that actually test modification. The implementation currently does not compile, because it depends on the non-open function |
789712d
to
270ce99
Compare
Implemented @nferruzzi node to import other Templates