template::head::add_link (public)

 template::head::add_link [ -crossorigin crossorigin ] -href href \
    [ -integrity integrity ] [ -lang lang ] [ -media media ] \
    [ -order order ] -rel rel [ -title title ] [ -type type ]

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

Add a link tag to the head section of the document to be returned to the users client. A given target document may only be added once for a specified relation; subsequent calls to add_link will replace the existing entry.

Switches:
-crossorigin (optional)
Enumerated attribute to indicate whether CORS (Cross-Origin Resource Sharing) should be used
-href (required)
the href attribute of the link tag, e.g. the target document of the link
-integrity (optional)
provide hash values for W3C Subresource Integrity recommendation
-lang (optional)
the lang attribute of the link tag specifying the language of its attributes if they differ from the document language
-media (optional)
the media attribute of the link tag describing which display media this link is relevant to. This may be a comma
-order (optional, defaults to "0")
specify inclusion order
-rel (required)
the rel attribute of the link tag defining the relationship of the linked document to the current one, e.g. 'stylesheet'
-title (optional)
the title attribute of the link tag describing the target of this link
-type (optional)
the type attribute of the link tag, e.g. 'text/css' separated list of values, e.g. 'screen,print,braille'
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 template::head::add_css template::head::add_css (public) template::head::add_link template::head::add_link template::head::add_css->template::head::add_link

Testcases:
No testcase defined.
[ show source ]
Show another procedure: