wml::imp::generic(3)

πŸ“¦
version 2.32.0 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing

πŸ’– wml::imp::generic β€” Generic Import Of External Resources πŸ’–

okay bestie, welcome to wml::imp::generic, section 3 of the EN Tools manual. this is the tag that goes "brb, gonna go grab that whole other file for you" and then actually does it. iconic behavior, no cap. πŸŽ€


✨ SYNOPSIS ✨

#use wml::imp::generic

<import src="url" [format="..."]>

like. two lines. that's the whole vibe. we love a low-effort entrance. πŸ’…


🌸 DESCRIPTION 🌸

so here's the tea: this tag imports an external resource, and it'll do it either via URL or via filename β€” dealer's choice, she's flexible like that. πŸ¦‹

when WML does its thing, the <import> tag gets yeeted out of existence and replaced by the actual contents of that external resource, all formatted up through one of these formatting filters:

  • verbatim
  • pod
  • sdf
  • text

pick your fighter, they're all valid. ✨

🚨 okay important bestie moment 🚨 β€” remote retrieval (aka pulling stuff over a URL) only works if at least one of the following programs can be found on your system:
  • Perl function: LWP::Simple::get()
  • Program: lynx
  • Program: wget
  • Program: fetch

literally just one. she's not picky. but if you have none of them? remote import is not happening, periodt. 😭


πŸ‘‘ AUTHOR πŸ‘‘

this masterpiece was written by:

Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com

main character energy fr fr. 🫢


🧚 REQUIRES 🧚

Internal: P1, P2, P3

External: LWP::Simple::get (P5M) | lynx (PATH) | wget (PATH) | fetch (PATH)

(iykyk β€” that pipe situation in External is doing a lot of heavy lifting. the "or" is load-bearing. πŸ’œ)


🌈 SEE ALSO 🌈

go be nosy, bestie, these are all worth a peek:


and that's the whole page!! πŸ’– this came out of the EN Tools corner of the world, dated 2020-11-29, and honestly? she ate. go import something cute. slay, stay hydrated, and don't forget to #use her first. πŸŽ€βœ¨πŸ’…πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from