raymyers / JHaml

Haml (XHTML Abstraction Markup Language) implementation in Java.
GNU General Public License v3.0
82 stars 10 forks source link

Seem to fix jsp nested expression bug #13

Closed charles-cooper closed 11 years ago

charles-cooper commented 11 years ago

Fixed bug where nested expression like %li=foobar

nested_expression

was rendering as `

  • <%= foobar

    %>`
  • charles-cooper commented 11 years ago

    thanks. do you think the behavior for like %li foobar

    nested_expression

    (i.e. the same thing but without jsp) should be changed as well? right now one has to type like %li foobar

    nested_expression

    raymyers commented 11 years ago

    That's a good question. At time of implementation, I don't believe mixing nested content with inline content was valid Haml. The correct behavior in the case of the expression might in fact be to throw an error - but I liked your idea of doing something reasonable regardless.

    I'll check to see what Ruby Haml is doing these days, as it's the reference implementation, and then make a decision.

    Thanks for the help!

    charles-cooper commented 11 years ago

    okay, haha. hope to see the new version on grails.org soon!