ruricolist / spinneret

Common Lisp HTML5 generator
MIT License
369 stars 26 forks source link

li tag not closed correctly #58

Closed fstamour closed 2 years ago

fstamour commented 2 years ago

the simple code

(spinneret:with-html-string
  (:li "stuff"))

returns

"<li>stuff"

when it should return

"<li>stuff</li>"
ruricolist commented 2 years ago

That's deliberate; HTML no longer requires li tags to be closed.

fstamour commented 2 years ago

Would it be possible to override that behaviour? I was trying to use spinneret to generate templates (vuejs templates) and the templating engine was loudly complaining about the tag not being closed.

(On the other hand, I could open an issue on vuejs.)

ruricolist commented 2 years ago

There's an override. You can bind the html-style variable to :tree.

On Wed, Feb 2, 2022, 7:20 AM Francis St-Amour @.***> wrote:

Would it be possible to override that behaviour? I was trying to use spinneret to generate templates (vuejs templates) and the templating engine was loudly complaining about the tag not being closed.

(On the other hand, I could open an issue on vuejs.)

— Reply to this email directly, view it on GitHub https://github.com/ruricolist/spinneret/issues/58#issuecomment-1027933595, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC7AKEW2HF7MJ4N4KF73QDUZEVQ3ANCNFSM5NLBNXZA . You are receiving this because you commented.Message ID: @.***>

fstamour commented 2 years ago

Ah, thanks!