NAME

Template::LiquidX::Tidy::impl - The implementation of Template::LiquidX::Tidy

SYNOPSIS

For internal usage.

METHODS

_tidy_list($obj, $args, $level, $clevel, $stack = {})

The Liquid indenter part

$obj

an object, subclass of Template::Liquid::Document

$args

The indenter configuration

returns a list of [ level, fragment ] pairs and modifies $stack

_tidy_make_string($obj, $args, @list)

Liquid indenter main routine. This does the grunt work of joining together all the tuples returned by the calls to _tidy_list

$obj

an object, subclass of Template::Liquid::Document

$args

The indenter configuration

returns the indented document string