Conversation
I'd forgotten golang templates supported comments directly, and so this didn't require any special hacking.
|
This branch meets my needs. Thank you. Five comments.
|
|
On further reflection, having the item published date is of such limited value that I think it's not worth doing. I'm sorry for bringing it up in the first place. I still think we can remove {{now}}. :-) |
|
It would be nice to name the template "email.tmpl", as in template.New("email.tmpl") so that the error message contains the filename on parse errors. |
In brief: * Pass `RSSItem` and `RSSFeed` to the template. * Use a better name for the template. * Reformatted some comments. * Drop the `now` helper.
Yes, removed on that basis.
I was using the shortcut that cron runs every N minutes, so the current time is a reasonable proxy for the actual publication date. Still it was a bit rough and ready. I've updated the template to explicitly pass
Yeah that's an area that needs some thought; the email sending is currently mixing too many concerns and should be cleaned up. I'll postpone that for the moment though.
Good suggestion. Done. |
|
I still like this change. It's purely cosmetic though. I won't mention it again though. :-) |
|
Thank you for being so responsive to my requests/comments. rss2email has all the features I can think of. My feed emails look exactly the way I want them without any local patches. Thanks again! |
|
Sorry somehow I spaced out reading your feedback and missed that bit. Fixed now. And no problem, it's been a fun few days. I'll take a new release shortly, and then leave the project to stall for a few more months! |
|
Sounds like a plan! |
This pull-request makes it possible for users to override the
default template which is used to generate the email.
This replaces #17, and closes #16 by making it possible for
users to make that choice for themselves.