in reply to HTML::Calendar alternative
I released this to CPAN, but it is still in "testing phase" though so it doesn't show up in the metacpan search results yet. It doesn't require XS or a compiler to work. Edit: I just remembered after I went out that unfortunately it requires XS indirectly since it is based on HTML::Make, which uses HTML::Valid::Tagset, which is an XS module.
The date calculation part is based on Date::Calc.
HTML::Make::Calendar is an oddity in that it uses an HTML generator, like a stack of HTML tags, rather than using the template methods which most people seem to prefer.
The HTML in the metacpan version above is slightly odd-looking because of metacpan's style being imposed on it. If you're really really interested about metacpan, see here.
Here is the output of one of the examples from my module:
| March 2021 | ||||||
|---|---|---|---|---|---|---|
| Mo | Tu | We | Th | Fr | Sa | Su |
| 🌕 1 | 🌕 2 | 🌖 3 | 🌖 4 | 🌖 5 | 🌖 6 | 🌗 7 |
| 🌗 8 | 🌗 9 | 🌘 10 | 🌘 11 | 🌘 12 | 🌘 13 | 🌑 14 |
| 🌑 15 | 🌑 16 | 🌑 17 | 🌒 18 | 🌒 19 | 🌒 20 | 🌒 21 |
| 🌓 22 | 🌓 23 | 🌓 24 | 🌓 25 | 🌔 26 | 🌔 27 | 🌔 28 |
| 🌕 29 | 🌕 30 | 🌕 31 | ||||
Since it might be useful I uploaded version 0.01 to CPAN. There is also a list of other modules which I found, so if this one doesn't suit you, those might.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML::Calendar alternative
by Bod (Parson) on Mar 27, 2021 at 00:36 UTC | |
by no longer just digit (Beadle) on Mar 28, 2021 at 13:59 UTC |