HTMLHeadDirectives

laika.directive.std.HTMLHeadDirectives$

Provides the implementation for the standard directives for the head section in HTML templates.

These include:

  • linkCSS: Adds link elements to HTML/EPUB output for all or selected CSS files found in the document tree
  • linkJS: Adds link elements to HTML/EPUB output for all or selected JavaScript files found in the document tree

For full documentation see the section about HTML Template Directives in the manual.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete fields

lazy val linkCSS: Directive

Template directive that inserts links to all CSS inputs found in the document tree, using a path relative to the currently processed document.

Template directive that inserts links to all CSS inputs found in the document tree, using a path relative to the currently processed document.

The optional include array attribute can be used to specify a sequence of directories or documents based on Laika's virtual path to be included. If omitted the entire input tree will be searched for CSS documents.

Only has an effect for HTML and EPUB output, will be ignored for PDF output.

Attributes

lazy val linkJS: Directive

Template directive that inserts links to all JavaScript inputs found in the document tree, using a path relative to the currently processed document.

Template directive that inserts links to all JavaScript inputs found in the document tree, using a path relative to the currently processed document.

The optional include array attribute can be used to specify a sequence of directories or documents based on Laika's virtual path to be included. If omitted the entire input tree will be searched for CSS documents.

Only has an effect for HTML and EPUB output, will be ignored for PDF output.

Attributes