Replace {rdelim}
and {ldelim}
Smarty braces delimiters for real braces {
and }
or viceversa from Smarty templates
$ go get github.com/falmar/smarty-brace-delim
$ smarty-brace-delim -h
Usage of smarty-brace-delim:
-b Parse braces into {delim}
-d Parse {delim} into braces
-i string
Input file path
-o string
Output file path absolute or relative (to input) NOTE: if not provied will overwrite input file
-ow
Overwrite backup file if already exist
-rm
Remove backup file after parse
$ go test github.com/falmar/smarty-brace-delim -v -cover
Using option -b
$ smarty-brace-delim -i path/to/file -o path/to/output_file -b
Will transform the input file into output file
Using the option -d
will do the opposite
- Take care of fragments multiline comments eg.
function { {* comment *} }