Class: AttributeTransformManager

wt2html/TokenTransformManager~AttributeTransformManager(manager, options)

Utility transformation manager for attributes, using an attribute transformation pipeline (normally phase1 SyncTokenTransformManager and phase2 AsyncTokenTransformManager). This pipeline needs to be independent of the containing TokenTransformManager to isolate transforms from each other. The AttributeTransformManager returns its result as a Promise returned from the .process method.

Constructor

new AttributeTransformManager(manager, options)

...
Parameters:
Name Type Description
manager TokenTransformManager
options Object
Source:

Methods

process() → {Object|boolean|Promise}

Expand both key and values of all key/value pairs.

Expand both key and values of all key/value pairs. Used for generic (non-template) tokens in the AttributeExpander handler, which runs after templates are already expanded.

Source:
Returns:
  • Type
    Object
  • return.async - will this expansion happy async-ly?

    Type
    boolean
  • return.promises - if async, the promises to do the work

    Type
    Promise