ailisp / flute

A beautiful, easilly composable HTML5 generation library in Common Lisp
64 stars 7 forks source link

children without attributes #7

Open ulrivo opened 3 years ago

ulrivo commented 3 years ago

Hi,

I am impressed by flute - thank you.

I have a question: if I define an user-element and have no attributes for children, there is an error.

Example:

(define-element just-div ()
  (div children))

(just-div (a "a"))

There will be an "error-printing-object".

With a nil as attribute, the error is gone:

(define-element just-div ()
  (div nil children))

Is this a bug or a feature?

Regards, Ulrich