[MAGNOLIA-2508] Allow passing a template stream/reader to FreeMarker templates inline Created: 11/Dec/08  Updated: 23/Jan/13  Resolved: 28/Jan/09

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: None
Fix Version/s: 4.0

Type: Improvement Priority: Major
Reporter: Teresa Miyar Assignee: Teresa Miyar
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-1788 Simplify / remove FreemarkerUtil, han... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

A method taking a Reader argument, which contains the template itself. Useful for double-processing (i.e a Magnolia page sent as an email), when the template isn't a resource.



 Comments   
Comment by Magnolia International [ 11/Dec/08 ]

todo: review/refactor - along with FreemarkerUtil - also see MAGNOLIA-2245

Comment by Magnolia International [ 02/Jan/09 ]

This is now implemented as such, but we could also envision using a TemplateLoader to achieve this. In fact, Freemarker provides an abstract URLTemplateLoader, and it would be fairly trivial to implement it so that it fetches a page from a given Magnolia instance pretty much the same way the mail module does it at the moment.

Comment by Magnolia International [ 28/Jan/09 ]

For further improvements, see MAGNOLIA-1788

Generated at Mon Feb 12 03:37:24 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.