Class: Tree

Tree~ Tree

new Tree(tree, pool)

Модуль работы с BEMJSON-деревом.
Parameters:
Name Type Description
tree object BEMJSON-дерево
pool Pool Список шаблонов
Source:

Methods

expand(bemjson) → {Node}

Развернуть дерево в набор экземпляров БЭМ-узлов.
Parameters:
Name Type Description
bemjson object BEMJSON
Source:
Returns:
Type
Node

toString() → {string}

Получить строковое представление дерева.
Source:
Returns:
Type
string