From 19bdbad390b3977ee6d0307f3edbaa83bd7e2cf0 Mon Sep 17 00:00:00 2001 From: Marcus Kammer Date: Fri, 1 Sep 2023 16:06:37 +0200 Subject: [PATCH] Update badge docs --- src/component/badge.org | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/component/badge.org b/src/component/badge.org index ff70439..4aa6be6 100644 --- a/src/component/badge.org +++ b/src/component/badge.org @@ -70,7 +70,7 @@ them into your project: #+begin_src lisp (defpackage my-web-app - (:use :cl :cl-sbt/badge) + (:use :cl :cl-sbt/badge :cl-sbt/btn) (:export :generate-badge-page)) (in-package :my-web-app) @@ -85,7 +85,7 @@ them into your project: ) (:body (:h1 "Badge Example") - (badge-primary "New") + (btn-primary () "Notifications " (badge-secondary "4")) (badge-success "Updated") ;; Include more badges here )))) @@ -93,6 +93,21 @@ them into your project: (generate-badge-page) #+end_src +#+RESULTS: +#+begin_example + + + + Badge Example + + +

Badge Example

+ + Updated + + +#+end_example + This example demonstrates how to integrate cl-sbt/badge macros into a web application to create Bootstrap-style badges. By using these macros, you can quickly and easily add badges to your web application, customizing them to fit