-
Notifications
You must be signed in to change notification settings - Fork 167
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
feat: Publish & Document Jinja Macros #5342
Conversation
78a9b85
to
6c81e69
Compare
d7a5b37
to
e995d6f
Compare
c70de3b
to
bdbafd5
Compare
@bartaz Good point. I've moved it to just above the "import" section as I feel it might be a bit disjointed to read examples -> import instructions -> Jinja API docs We could also move the Jinja API docs to their own tab / sub-page, any thoughts on putting it at bottom of page vs on a separate sub-page? @bartaz @pastelcyborg @advl |
I'd think moving the Jinja API docs to a separate tab would fall under the decision we made about moving the Jinja examples/code samples to a separate tab - that is, we decided not to do that because it would increase complexity and make the docs more convoluted. I think the structure as represented right now is acceptable. The only change I would possibly make is moving the macro API docs after the Jinja import instructions, but it's really not a big deal either way. |
Hi, this looks interesting. The slot checking in the macro calling is a bit ugly imo -- the following jinja issue has an alternative that is nicer I think: pallets/jinja#482 (comment) This would kinda look like this:
(see the last lines) and then used in call like this:
Personally I think this is more readable. |
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.
LGTM
* Update building-vanilla.md * Update pattern docs * Roll back pattern docs * Update building-vanilla.md
This reverts commit 99b32c9.
…rn them there instead of generating them in the callback
bdbafd5
to
24bf014
Compare
Hi @apollo13 , thanks for your feedback! We've discussed it as a team and decided to stick with the current approach, at least for now - we've established this style as a team standard for this opening round of macros, but will keep it in mind for the future. It's nice to have some feedback from someone who is so familiar with these! |
Hi Julie, ok fine with me. The good thing is that if you decide to change it in the future you can support both syntaxes in parallel during a deprecation period. So it is not an end-of-world type decision.
…On Thu, Oct 3, 2024, at 17:55, Julie Muzina wrote:
> Hi, this looks interesting. The slot checking in the macro calling is a bit ugly imo -- the following jinja issue has an alternative that is nicer I think: pallets/jinja#482 (comment) <pallets/jinja#482 (comment)>
>
Hi @apollo13 <https://github.com/apollo13> , thanks for your feedback!
We've discussed it as a team and decided to stick with the current
approach, at least for now - we've established this style as a team
standard for this opening round of macros, but will keep it in mind for
the future. It's nice to have some feedback from someone who is so
familiar with these!
—
Reply to this email directly, view it on GitHub
<#5342 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAT5C363IKB4U5ZBLCKT33ZZVSH5AVCNFSM6AAAAABOBTK2I6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRG43TENBQG4>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Done
Feature branch PR for publishing & documenting Jinja macros
vf_
namespace #5329QA
Check if PR is ready for release
If this PR contains Vanilla SCSS code changes, it should contain the following changes to make sure it's ready for the release:
Feature 🎁
,Breaking Change 💣
,Bug 🐛
,Documentation 📝
,Maintenance 🔨
.package.json
should be updated relative to the most recent release, following semver convention: