shoorick: (Default)
[personal profile] shoorick
Подсмотрел простенький пример, демонстрирующий раскраску чётных и нечётных строк таблицы средствами Template::Toolkit.
Его можно чуть-чуть упростить:
[% FOR subject = subjects %]
<tr[% IF loop.index % 2 %] class="even"[% END %]>
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

shoorick: (Default)
shoorick

December 2016

S M T W T F S
    1 23
45678910
11121314151617
18 19 2021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 1st, 2025 04:41 pm
Powered by Dreamwidth Studios