Skip to content

Experiment with remote snippets #33

Open

Description

@pi0

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

Activity

  1. HugoRCD commented on Mar 27, 2024

    @HugoRCD

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions