liquid_tidy - Indent Liquid template documents
liquid_tidy [-html] [-indent=4] [-noforce_nl] [-short_if=8] [-force_nl_tags="for if ..."] [<file>]
Print this message.
Indent HTML code
The number of spaces for each indentation level
Whether to forcibly add line breaks into tags listed as force_nl_tags
The length of a text inbetween {% if %} that should be exempt from force_nl
A space separated list of tags where -force_nl will add line breaks.
Default tags: for endfor comment endcomment if unless elsif else endif endunless case when endcase
This program will read the given input file and output the nicely indented Liquid template to standard output.
Template::Liquid
To install Template::LiquidX::Tidy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::LiquidX::Tidy
CPAN shell
perl -MCPAN -e shell install Template::LiquidX::Tidy
For more information on module installation, please visit the detailed CPAN module installation guide.