Remove css-selector-like annotation
This commit is contained in:
parent
3dd9c7cdf0
commit
979489c15b
3 changed files with 2 additions and 46 deletions
|
@ -1,6 +1,6 @@
|
|||
# piccolo
|
||||
|
||||
piccolo, a fork of [flute](https://github.com/ailisp/flute), is a beautiful, easilly composable DSL for writing HTML with Common Lisp.
|
||||
piccolo, a fork of [flute](https://github.com/ailisp/flute), is a beautiful, easily composable DSL for writing HTML with Common Lisp.
|
||||
|
||||
It's
|
||||
|
||||
|
@ -148,12 +148,6 @@ Then just wrap `h` for all html generation part. In the same examples above, it
|
|||
|
||||
(defparameter *dog2* (dog :id "dog2" :size 20 "some children"))
|
||||
```
|
||||
From version 0.2 (available in Aug 2018 Quicklisp), piccolo supports css style id and class attribute for builtin elements. For example `div#id-name.class1.class2`, So you can also write:
|
||||
```lisp
|
||||
(h (div#a.b "..."))
|
||||
;; Provide additional class and attributes
|
||||
(h (div#a.b :class "c" :onclick "fun()"))
|
||||
```
|
||||
|
||||
## Inline CSS and JavaScript
|
||||
With help of [cl-css](https://github.com/Inaimathi/cl-css) (available in Quicklisp), You can write inline CSS for the `style` attribute, in a similar syntax like piccolo:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue