Hi Daniel,

Please see the examples in https://issues.apache.org/jira/browse/FREEMARKER-148 
<https://issues.apache.org/jira/browse/FREEMARKER-148>

Thanks in advance, 

Siegfried Goeschl


> On 03.07.2020, at 23:25, Daniel Dekany <daniel.dek...@gmail.com> wrote:
> 
> How do you intend to have map semantics and still expose helper methods?
> I'm not asking how would you implement that, but how would it look in the
> templates?
> 
> On Tue, Jun 30, 2020 at 9:28 PM Siegfried Goeschl <
> siegfried.goes...@gmail.com> wrote:
> 
>> Hi folks,
>> 
>> Following up a discussion with Daniel I would like to make "DataSources"
>> (contains the user-supplied data sources) a bit more FTL friendly
>> 
>> Had a quick look at it but I'm a bit lost
>> I created a DataSourcesAdapter which extends TemplateSequenceModel &
>> TemplateHashModel
>> DataSources has a few additional finder methods which I can't invoke when
>> exposing the DataSourcesAdapter
>> So the question is what interfaces needs to be implemented to support
>> sequence semantics
>> hash map semantics
>> arbitrary helper methods
>> in a single adapter
>> 
>> Thanks in advance,
>> 
>> Siegfried Goeschl
>> 
>> 
> 
> -- 
> Best regards,
> Daniel Dekany

Reply via email to