CLI/Shell spacing with Template--Toolkit (TT) without looping


/ Published in: Perl
Save to your folder(s)



Copy this code and paste it in your HTML
  1. [% MACRO spacing(text) PERL %]
  2. my $n = $stash->get('text');
  3. print " " x ( 10 - length($n));
  4. [% END -%]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.