Show results as example instead of html

This commit is contained in:
Marcus Kammer 2023-07-11 20:01:48 +02:00
parent f831be7508
commit d6eda1f1ed
2 changed files with 38 additions and 38 deletions

View file

@ -1,28 +1,28 @@
# Table of Contents
1. [Cl-Sbt](#org6b7b2d5)
1. [Usage](#org73362c7)
1. [Defining a Card](#org5fffccc)
2. [Defining a Dropdown](#orgfcfa498)
2. [Installation](#org1a9e1bc)
3. [Author](#orgfe8f77a)
4. [Copyright](#orga9219ed)
1. [Cl-Sbt](#orgf83023c)
1. [Usage](#org78733f2)
1. [Defining a Card](#org18999ea)
2. [Defining a Dropdown](#orgc4ef212)
2. [Installation](#org656f0ca)
3. [Author](#org1683a96)
4. [Copyright](#orgd092a88)
<a id="org6b7b2d5"></a>
<a id="orgf83023c"></a>
# Cl-Sbt
Common Lisp Spinneret Bootstrap Templates
<a id="org73362c7"></a>
<a id="org78733f2"></a>
## Usage
<a id="org5fffccc"></a>
<a id="org18999ea"></a>
### Defining a Card
@ -35,19 +35,19 @@ The following code demonstrates how to define a card using the card macro.
(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")))
<div class=card>
<div class=card-body>
<h5 class=card-title>Card title</h5>
<h6
class="card-subtitle mb-2 text-body-secondary">Card subtitle</h6>
<p class=card-text>Some quick example text to build on the card title and make up
the bulk of the card&#39;s content.
<a class=card-link href=#>Card link</a>
</div>
</div>
<div class=card>
<div class=card-body>
<h5 class=card-title>Card title</h5>
<h6
class="card-subtitle mb-2 text-body-secondary">Card subtitle</h6>
<p class=card-text>Some quick example text to build on the card title and make up
the bulk of the card&#39;s content.
<a class=card-link href=#>Card link</a>
</div>
</div>
<a id="orgfcfa498"></a>
<a id="orgc4ef212"></a>
### Defining a Dropdown
@ -60,19 +60,19 @@ macro.
(cl-sbt-dropdown:item "Another action")
(cl-sbt-dropdown:item "Something else here")))
<div class=dropdown>
<button class="btn btn-secondary dropdown-toggle"
type=button data-bs-toggle=dropdown
aria-expanded=false>Dropdown button</button>
<ul class=dropdown-menu>
<li><a class=dropdown-item href=#>Action</a>
<li><a class=dropdown-item href=#>Another action</a>
<li><a class=dropdown-item href=#>Something else here</a>
</ul>
</div>
<div class=dropdown>
<button class="btn btn-secondary dropdown-toggle"
type=button data-bs-toggle=dropdown
aria-expanded=false>Dropdown button</button>
<ul class=dropdown-menu>
<li><a class=dropdown-item href=#>Action</a>
<li><a class=dropdown-item href=#>Another action</a>
<li><a class=dropdown-item href=#>Something else here</a>
</ul>
</div>
<a id="org1a9e1bc"></a>
<a id="org656f0ca"></a>
## Installation
@ -81,14 +81,14 @@ macro.
(ql:quickload :cl-sbt)
<a id="orgfe8f77a"></a>
<a id="org1683a96"></a>
## Author
- Marcus Kammer (marcus.kammer@mailbox.org)
<a id="orga9219ed"></a>
<a id="orgd092a88"></a>
## Copyright

View file

@ -8,7 +8,7 @@ Common Lisp Spinneret Bootstrap Templates
The following code demonstrates how to define a card using the card macro.
#+begin_src lisp :results output html :exports both
#+begin_src lisp :results output :exports both
(cl-sbt-card:card
(cl-sbt-card:body
(cl-sbt-card:title "Card title")
@ -36,7 +36,7 @@ The following code demonstrates how to define a card using the card macro.
The following code demonstrates how to define a dropdown using the dropdown
macro.
#+begin_src lisp :results output html :exports both
#+begin_src lisp :results output :exports both
(cl-sbt-dropdown:dropdown (:title "Dropdown button")
(cl-sbt-dropdown:menu
(cl-sbt-dropdown:item "Action")
@ -45,7 +45,7 @@ macro.
#+end_src
#+RESULTS:
#+begin_export html
#+begin_example
<div class=dropdown>
<button class="btn btn-secondary dropdown-toggle"
type=button data-bs-toggle=dropdown
@ -56,7 +56,7 @@ macro.
<li><a class=dropdown-item href=#>Something else here</a>
</ul>
</div>
#+end_export
#+end_example
** Installation