-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add ZAP templates to src/app #3638
Add ZAP templates to src/app #3638
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good. A few minor comments/nits mostly related to style consistency.
My biggest concerns would be that I would really prefer those templates to live inside examples
. It would make it extra clear that they are used to generate the examples and are basically glued to them.
@woody-apple Restyled seems to fail because of the Javascript file included in this PR (third_party/repo/templates/helper-chip.js). Do you know what is the proper way to fix it ? |
My point of view is that templates are an extension of ZAP. By themselves, they're useless. Moving them elsewhere would give the impression that they can be "standalone". And yes, as for now only the examples use them, but when people will start using CHIP for their own project, having the templates hidden under |
I think these belong under src/app, as they are part of CHIP, they're effectively libraries/source files for CHIP's interaction with ZAP. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move to src/app/zapt/xxx.zapt ?
Only the templates files or everything that is under |
I agree with moving them. IMO, the things that belongs in third_party/X are
For projects that add tools supporting a domain specific language such as ZAP, the sources in that language don't go in third_party. They are go in the regular directory structure of CHIP. |
4c27c1f
to
8dcbbbc
Compare
I opened #3708 for that. The issue being that |
4c673d0
to
f866874
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't want to use the name src/app/zapt?
If the folder was named zapt one could expect to only find |
This is exactly why I asked for |
@mspang @andy31415 so we can merge this PR. |
Problem
PR #3464 is huge. Break down into multiples small PR to facilitate review.
Summary of Changes
Add Zap Templates in the CHIP repo
Partial Fix of #1733