diff --git a/_posts/2023-04-12-un-outil-sans-daemon-pour-gérer-ses-artefacts-de-build.md b/_posts/2023-04-12-un-outil-sans-daemon-pour-gérer-ses-artefacts-de-build.md index 8356d15..2684b70 100644 --- a/_posts/2023-04-12-un-outil-sans-daemon-pour-gérer-ses-artefacts-de-build.md +++ b/_posts/2023-04-12-un-outil-sans-daemon-pour-gérer-ses-artefacts-de-build.md @@ -150,3 +150,16 @@ const albatros_tags = async () => { ``` Ensuite il ne reste plus qu'à l'insérer dans le DOM de la page : + +```javascript +const inject_list = manifest => { + const c = manifest.tags.map(t => `registry.deuxfleurs.org/albatros:${t}`).join('\n') + document.querySelector('pre').textContent = c +} + +(async () => inject_list(await albatros_tags()))() +``` + + + +