Skip to content
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

frontmatter import attributes #1255

Closed
thescientist13 opened this issue Jul 10, 2024 · 0 comments · Fixed by #1256
Closed

frontmatter import attributes #1255

thescientist13 opened this issue Jul 10, 2024 · 0 comments · Fixed by #1256
Assignees
Labels
alpha.5 CLI documentation Greenwood specific docs enhancement Improve something existing (e.g. no docs, new APIs, etc) v0.30.0
Milestone

Comments

@thescientist13
Copy link
Member

Summary

For frontmatter imports, one current limitation is that only paths are supported, e.g.

---
imports:
  - /components/my-component/component.js 
---

However, there is no way to add attributes to these, like say if we wanted to add an optimization attribute like data-opt-gwd="static"

Details

It would be nice if this

---
imports:
  - /components/my-component/component.js foo="bar"
---

produced this output

<script src="/components/my-component/component.js" foo="bar"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpha.5 CLI documentation Greenwood specific docs enhancement Improve something existing (e.g. no docs, new APIs, etc) v0.30.0
Projects
Development

Successfully merging a pull request may close this issue.

1 participant