template::register_urn (public)

 template::register_urn -urn urn -resource resource \
    [ -csp_list csp_list ]

Defined in packages/acs-templating/tcl/head-procs.tcl

Register a URN for a resource. These URNs provide a single place for e.g. updating references to external resources when switching between a CDN and a local resource, or when a resource should be updated. We could consider a dns-prefetch for CDN requests. When the url-check is performed at register time, the performance for processing the url can be neglected.

Switches:
-urn (required)
-resource (required)
-csp_list (optional)

Testcases:
urn_api
[ show source ]
Show another procedure: