Menu

#96 Support hypen in tag parameter names

2.4.0
open-accepted
nobody
6
2015-08-26
2013-07-23
No

I'd like to be able to use struts2 tags passing through dynamic attributes that include a hyphen (dash). This would be very helpful because many 3rd party css/js libraries such as JQuery Mobile and Bootstrap use attributes that contain hypens. Unfortunately, Freemarker does not allow parameter names with dashes.

So what I'd like to be able to do is write:

<@s.form ... data-ajax="false">
</@s.form>

Discussion

  • Dániel Dékány

    This needs incompatible change in the FTL syntax because of ambiguitied causes be that both = and == can be used for comparison. That I plan to get rid of in 2.4 where other FTL baggage will be removed too anyway.

     

    Last edit: Dániel Dékány 2014-06-15
  • Dániel Dékány

    • status: open --> open-accepted
    • Group: --> 2.4.0
    • Priority: 5 --> 6
     
  • Dániel Dékány

    Ticket moved from /p/freemarker/bugs/395/

     
  • Dániel Dékány

    Note that for a while it's possible to do in 2.3.x with putting backslash before the dash: <@s.form ... data\-ajax="false">. Not the nicest, but backward compatible...

     

Log in to post a comment.