dev.metalisp.sbt/README.md
2023-07-11 19:59:29 +02:00

1.5 KiB

Table of Contents

  1. Cl-Sbt
    1. Usage
      1. Defining a Card
      2. Defining a Dropdown
    2. Installation
    3. Author
    4. Copyright

Cl-Sbt

Common Lisp Spinneret Bootstrap Templates

Usage

Defining a Card

The following code demonstrates how to define a card using the card macro.

(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")))

Defining a Dropdown

The following code demonstrates how to define a dropdown using the dropdown macro.

(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")))

Installation

git clone https://git.sr.ht/~marcuskammer/cl-sbt ~/quicklisp/local-projects/cl-sbt/

(ql:quickload :cl-sbt)

Author

Copyright (c) 2023 Marcus Kammer (marcus.kammer@mailbox.org)