<#/@> in [#/@] templates (Was: Re: File Not Found Exception)
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Friday, February 27, 2009, 9:59:10 AM, Attila Szegedi wrote:
> You're also mixing square brackets and angle brackets: [#ftl] but
> <#list>.
Oh, don't even mention that... I tried to use the square bracket
syntax for a few occasions, and very often randomly I switched back to
the angle-bracket syntax. The problem is, that doesn't generate any
errors, so FTL-parsing editors (Eclipse plug-in) don't signal it. And
if you did it in a #function (that, as we know, suppresses all output,
like printing those <#...>), you will never find out why it doesn't do
what you want. :) So I wonder if it's only my problem, or "<#", "</#",
"<@" and "</@" should indeed be disallowed in square-brackets syntax
templates unless you allow them explicitly in the #ftl header (that's
useful for writing template-templates).
> That'll cause some problems... It ain't the answer to "file
> not found" though, for which I don't have an idea :-)
>
> Attila.
>
> On 2009.02.06., at 4:42, Archana D Patange wrote:
>
>> Hi all,
>>
>> I'm newbie to FreeMarker, I've created a template but it is throwing
>> FileNotFoundException. Can anyone please let me know whether my
>> template is syntatically correct as I want to confirm. Below is the
>> template
>>
>> [#ftl]
>> <MODULE>
>> <HEADER>
>> <LABEL>
>> <IMAGE HREF="${doc.Module.header.label.image.href}"></IMAGE>
>> ${doc.Module.header.label.label}
>> </LABEL>
>> </HEADER>
>> <#list doc.Module.containers as x>
>> <CONTAINER type="${x.Container.type}">
>> <FORM HREF="${x.Container.formDO.href}" SUBMIT_TEXT="$
>> {x.Container.formDO.submit_text}">
>> <FIELD TYPE="${x.Container.formDO.field.type}" NAME="$
>> {x.Container.formDO.field.name}"></FIELD>
>> </FORM>
>> </CONTAINER>
>> </#list>
>> </MODULE>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user
>
--
Best regards,
Daniel Dekany
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H