* Cl-Sbt Common Lisp Spinneret Bootstrap Templates ** Usage *** Defining a Card The following code demonstrates how to define a card using the card macro. #+begin_src lisp :results output :exports both (cl-sbt-card:card (cl-sbt-card:body (cl-sbt-card:title "Card title") (cl-sbt-card:subtitle "Card subtitle") (cl-sbt-card:text "Some quick example text to build on the card title and make up the bulk of the card's content.") (cl-sbt-card:link (:href "#") "Card link"))) #+end_src #+RESULTS: #+begin_example
Card title
Card subtitle

Some quick example text to build on the card title and make up the bulk of the card's content. Card link

#+end_example The following code demonstrates how to define a card using the card-with-img macro. #+begin_src lisp :results output :exports both (cl-sbt-card:card-with-img (:img-src "test.jpg") (cl-sbt-card:title "Card title") (cl-sbt-card:subtitle "Card subtitle") (cl-sbt-card:text "Some quick example text to build on the card title and make up the bulk of the card's content.") (cl-sbt-card:link (:href "#") "Card link")) #+end_src #+RESULTS: #+begin_example
Card Image
Card title
Card subtitle

Some quick example text to build on the card title and make up the bulk of the card's content. Card link

#+end_example *** Defining a Dropdown The following code demonstrates how to define a dropdown using the dropdown macro. #+begin_src lisp :results output :exports both (cl-sbt-dropdown:dropdown (:title "Dropdown button") (cl-sbt-dropdown:menu (cl-sbt-dropdown:item "Action") (cl-sbt-dropdown:item "Another action") (cl-sbt-dropdown:item "Something else here"))) #+end_src #+RESULTS: #+begin_example #+end_example ** Installation #+begin_src bash git clone https://git.sr.ht/~marcuskammer/cl-sbt ~/quicklisp/local-projects/cl-sbt/ #+end_src #+begin_src lisp (ql:quickload :cl-sbt) #+end_src ** Author + Marcus Kammer (marcus.kammer@mailbox.org) ** Copyright Copyright (c) 2023 Marcus Kammer (marcus.kammer@mailbox.org)