Skip to main content

import_library

Load a Library object from a template tag module.

def import_library(
name: string
) - > Library

Load a Library object from a template tag module.

Parameters

NameTypeDescription
namestringThe full python path of the module to be imported as a template library

Returns

TypeDescription
LibraryThe 'register' variable from the imported module, typically a template Library instance used to register tags and filters