Skip to main content

Import

An import statement lets you use declarations, styles, and other assets from an imported module, optionally through an alias.

import SomeModule;
import SomeOtherModule as Library;

template xyz render {

// if both SomeModule and SomeOtherModule define this element, a name conflict
SomeElement();

SomeModule::SomeElement();
// once imported you can refer to elements
Library::SomeElement();

}