Hi, I guess your answer is mostly about formatting HTML output using TML markup?
It's not that trivial as it could be, mostly because tapestry rendering is built around HTTP request processing. I.e. one of it's core components -- PageLink -- relies on (http) Request service which is usually unavailable when you need to send an email, because you usually don't want to send it the scope of HTTP request but rather do this asynchronously or by some non-HTTP event, like timer. You can mock the request service for offline use, or build your own component for link rendering in offline mode, etc. which is not that difficult but still not trivial. The next thing is partial rendering: Tapestry does support partial rendering of blocks using PartialTemplateRenderer, but you still need to host the block on some page to be able to reference it. Those pages need to be "private", as you may not want to render them in normal way to your users. On Tue, Feb 20, 2018 at 8:31 AM, Coleman, JohnSteven (Agoda) < johnsteven.cole...@agoda.com> wrote: > Hi, > > Has anyone implemented Tapetsry to build html emails? Is that fairly > trivial to do? > > John > > ________________________________ > This message is confidential and is for the sole use of the intended > recipient(s). It may also be privileged or otherwise protected by copyright > or other legal rules. If you have received it by mistake please let us know > by reply email and delete it from your system. It is prohibited to copy > this message or disclose its content to anyone. Any confidentiality or > privilege is not waived or lost by any mistaken delivery or unauthorized > disclosure of the message. All messages sent to and from Agoda may be > monitored to ensure compliance with company policies, to protect the > company's interests and to remove potential malware. Electronic messages > may be intercepted, amended, lost or deleted, or contain viruses. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org > For additional commands, e-mail: dev-h...@tapestry.apache.org > > -- Dmitry Gusev AnjLab Team http://anjlab.com