Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Templates > Tags > <import>

<import>

  <import 
    ( href="path" | module="symbolmodule" | from="dotted-name" )
    ( as="symbolnew-name" | entities="import-list" )
    [ taglib="path-to-taglib-xml" ns="symbolnamespace" ]  >

An ``importยดยด tag imports an entity to currently enclosing scope.

Attributes:

href
Path, absolute (from domain's container) or relative (to current script), to target script. This attribute is mutually exclusive with module and from.
module
Dotted name of library to import. This attribute is mutually exclusive with href and from.
from
Dotted name of entity to import from. This attribute is mutually exclusive with href and module.
as
Optional new name for imported entity. This attribute is mutually exclusive with entities.
entities
Either, a star (*) indicating that all entities from given entity should be imported or list of dotted names (which may optionally have ".*" in the end) referring to entities to import. This attribute is mutually exclusive with as.
taglib
Path, absolute or relative, to XML file specifying the tag library. Attribute ns is also required.
ns
Namespace for tag library; can be empty. Attribute taglib is also required.

See also  | Tags  | Tag libraries  | <module>  | <function>  | <namespace>  | <class>
Contributes notes:
Add a note
What's new | Anvil