Uploaded image for project: 'Apache Freemarker'
  1. Apache Freemarker
  2. FREEMARKER-58

docu: namespaces page: correct mistake in code example

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.27-incubating
    • Component/s: None
    • Labels:
      None

      Description

      on
      http://freemarker.org/docs/dgui_misc_namespace.html

      is written

      <#import "/lib/example.ftl" as e>
      ${my.mail}
      <#assign mail="other@example.com" in e>
      ${my.mail}
      

      should be

      <#import "/lib/example.ftl" as e>
      ${e.mail}
      <#assign mail="other@example.com" in e>
      ${e.mail}
      


      is written

      <#import "/lib/example.ftl" as e>
      <#import "/lib/example.ftl" as e2>
      <#import "/lib/example.ftl" as e3>
      ${e.mail}, ${e2.mail}, ${e3.mail}
      <#assign mail="other@example.com" in my>
      ${e.mail}, ${e2.mail}, ${e3.mail}
      

      should be

      <#import "/lib/example.ftl" as e>
      <#import "/lib/example.ftl" as e2>
      <#import "/lib/example.ftl" as e3>
      ${e.mail}, ${e2.mail}, ${e3.mail}
      <#assign mail="other@example.com" in e>
      ${e.mail}, ${e2.mail}, ${e3.mail}
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jonex Johannes Lugmayr
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: