[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: |
|
||||||||
| 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 |
| 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 |