rabbibotton / clog

CLOG - The Common Lisp Omnificent GUI
Other
1.49k stars 102 forks source link

create-pre ? #154

Closed sabracrolleton closed 2 years ago

sabracrolleton commented 2 years ago

Any reason why there is no create-pre function?

rabbibotton commented 2 years ago

There is:

(deftype section-type () '(member :address :article :aside :header :main :nav :p :pre :section :blockquote :h1 :h2 :h3 :h4 :h5 :h6 :hgroup))

(defgeneric create-section (clog-obj section &key content hidden class html-id auto-place) (:documentation "Create a new CLOG-Section of section type as child of CLOG-OBJ with CONTENT and if :AUTO-PLACE (default t) place-inside-bottom-of CLOG-OBJ"))

If you give me a compelling reason to add these as individual create-* I will and reopen, but consider that these are more "paragraph" not "block" style elements.

sabracrolleton commented 2 years ago

Thank you. While I will not try to give you a compelling reason to add those as individual cases, can I ask that the list of section-types be referenced in the manual?

rabbibotton commented 2 years ago

hmm didn't realize not picked up by mgx-pax, I'll play around with seeing how to get the list to show or just add it to the docstring. Thanks!

rabbibotton commented 2 years ago

I added them to the documentation strings. Thanks!!