[ 
https://issues.apache.org/jira/browse/OFBIZ-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516855
 ] 

Leon Torres commented on OFBIZ-203:
-----------------------------------

Actually, I came up with a much better idea.  It mixes the best ideas in this 
thread and uses nothing but FTL.  

Why don't we close this and post the alternative ideas as separate issues?  
I'll post mine later on once I verify it works.  Then we can reference this 
issue to the new ones to keep track of the ideas.

> Freemarker postal address formatter macro
> -----------------------------------------
>
>                 Key: OFBIZ-203
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-203
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Leon Torres
>            Priority: Minor
>         Attachments: ofbizPostalAddress.patch, test.bsh, test.ftl
>
>
> Define a macro <@ofbizPostalAddress address=inputMapOrGenericValue/>  to 
> format postal addresses in a consistent, flexible way with attention to 
> country postal formats.  The output should support both HTML and Text 
> formats.  It should be easily extensible, with future XSL:Fo support in mind.
> I created an implementation as an exercise to learn the freemarker template 
> system.  It was designed with future macros in mind.  Currently implemented 
> are rules for generating US, German and Royal Mail format postal addresses.  
> (The address country determines the format.)  Also provided are test.bsh and 
> test.ftl so people may try them out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to