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

Experiment with remote snippets #33

Open
pi0 opened this issue Feb 20, 2024 · 1 comment
Open

Experiment with remote snippets #33

pi0 opened this issue Feb 20, 2024 · 1 comment

Comments

@pi0
Copy link
Member

pi0 commented Feb 20, 2024

While playing with some ideas, taught to share to gather opinions about this method of the README.md population!

An example: https://github.com/unjs/.github/tree/main/snippets

@pi0 pi0 added the discussion label Feb 20, 2024
@HugoRCD
Copy link

HugoRCD commented Mar 27, 2024

Adding a system of variables that are automatically replaced during fetching could be a good addition to this already really great feature I think 🤔
Something like this, for example:

<!-- automd:fetch url="gh:unjs/.github/main/snippets/readme-footer.md" variables=[{key: author, value:pi0}, ...]
Made by ${author}
<!-- /automd -->

<!-- automd:fetch url="gh:unjs/.github/main/snippets/readme-footer.md" variables=[{key: author, value:pi0}, ...]
Made by pi0
<!-- /automd -->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants