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

    That looks interesting...

    Thanks - I shall see if I can get the XS modules installed. Although I have done what I needed to with HTML::Calendar::Simple, I have a feeling that I am going to need another calendar display before too long...

      I had a look at trying to de-XS HTML::Valid::Tagset and make it some kind of standalone but it is a big job. The tags are read in from the html-tidy library from the W3 consortium. I thought perhaps I would be able to just read them once and make a big text file and then have the module just read the text file without the library being involved, but it is a bit of a mess. It's meant to be a replacement for HTML::Tagset so there are lots of funny things in that.