is there a way to do [#list 'a'..'z' as char]

"Newman, John W" <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <D688C4D318A63D4290AA94A33E06F7D2010C051865@msxmbxnsprd14.acct.upmchs.net>
Hi,

We have a directory listing and want to have the letters of the alphabet on the top.

A   B   C ...

Instead of duplicating the code for each link is there a nice FM way to do

[#list 'A'..'Z' as char]
  <a href="/${char}/">${char}</a>
[/#list]

I know I could do [#assign alphabet = [ 'A', 'B', ... ] /], just wondering if there's a clean way using a built in or something..


TIA

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.