Discussion:
[FreeMarker-user] Include remote file in FTL template
KariC
2015-12-18 22:47:06 UTC
Permalink
I want to pull markup from a remote page on my system, into an FTL page. Can
this be done or can you only use the <#include> method for local files?



--
View this message in context: http://freemarker.624813.n4.nabble.com/Include-remote-file-in-FTL-template-tp4655602.html
Sent from the freemarker-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Sushrut Bidwai
2015-12-19 09:14:59 UTC
Permalink
Hi,

Have you looked at
http://freemarker.incubator.apache.org/docs/pgui_config_templateloading.html#autoid_39
.
Post by KariC
I want to pull markup from a remote page on my system, into an FTL page.
Can
this be done or can you only use the <#include> method for local files?
--
http://freemarker.624813.n4.nabble.com/Include-remote-file-in-FTL-template-tp4655602.html
Sent from the freemarker-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
FreeMarker-user mailing list
https://lists.sourceforge.net/lists/listinfo/freemarker-user
--
Best Regards,
Sushrut
*http://sushrutbidwai.com <http://sushrutbidwai.com>*
KariC
2015-12-21 04:15:38 UTC
Permalink
Ahh, very nice. I have to do some homework but I may be able to use that.



--
View this message in context: http://freemarker.624813.n4.nabble.com/Include-remote-file-in-FTL-template-tp4655602p4655605.html
Sent from the freemarker-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Daniel Dekany
2015-12-19 09:21:43 UTC
Permalink
FreeMarker templates are loaded by the TemplateLoader object which was
set via Configuration.setTemplateLoader(TemplateLoader). Thus, the
rest of the system doesn't care where the templates are coming from.
It's the question of what (custom) TemplateLoader you set. Like you
could implement one where template are loaded from the "class path",
except those whose name starts with "http://".
Post by KariC
I want to pull markup from a remote page on my system, into an FTL page. Can
this be done or can you only use the <#include> method for local files?
--
Thanks,
Daniel Dekany


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


------------------------------------------------------------------------------
Loading...