这是indexloc提供的服务,不要输入任何密码
Skip to content

[Enhancement] Investigate use of js-beautify to format the *.tpl files #626

@JohnVillalovos

Description

@JohnVillalovos

https://github.com/beautifier/js-beautify can be used to format Smarty template files *.tpl

smarty-php/smarty#1136 (comment)

Investigate using this to format the files and add it to the CI system.

An initial example command:

find tpl -type f -iname '*.tpl' -print0 \
  | xargs --null js-beautify --type html --templating smarty --indent-size 4 --replace --eol '\n' --end-with-newline

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions