[
https://issues.apache.org/jira/browse/FREEMARKER-74?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16180805#comment-16180805
]
Jörg Rade commented on FREEMARKER-74:
-------------------------------------
# Sorry! There is of course JavaDoc at http://freemarker.org/docs/api/index.html
# due to formatting, it escaped my (unpatient) eye
# for novice users like me, explaining the meaning of parameters via @param
helps a lot
My code now reads{code}
Configuration cfg = new Configuration(null);
Template t = new Template(null, body, cfg);
{code}
I can imaging that even this is not the use you intended - but hey - it does
what I expect.
Why should users deal with parameters they don't need?
Of course later my requirements will lead me to appreciate the possibilities
Configuration offers.
But right now I'm happy what I get with this 'Hello World'.
Thx -j
> Constructors freemarker.template.Template
> -----------------------------------------
>
> Key: FREEMARKER-74
> URL: https://issues.apache.org/jira/browse/FREEMARKER-74
> Project: Apache Freemarker
> Issue Type: Improvement
> Reporter: Jörg Rade
>
> # add java doc to all Constructors
> # change 'String name' to 'String templateDescription'
> # provide a Constructor where the 'templateSourceString' can be passed in
> directly
> ad 3) I have a use case where I have already have the template source at hand
> and all the file io is handled elsewhere - so I may even get along without
> cfg (insofar as it deals with file io)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)