wml::imp::generic(3)
π 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:
verbatimpodsdftext
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
- debian bookworm: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- debian trixie: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- ubuntu jammy: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- ubuntu noble: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- ubuntu questing: wml 2.32.0~ds1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms