Skip to content

Commit

Permalink
fix literals detecting in attributes; tag 0.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Nov 15, 2023
1 parent d217348 commit c384144
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
31 changes: 29 additions & 2 deletions calcit.cirru

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions compact.cirru
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{} (:package |respo-ui)
:configs $ {} (:init-fn |respo-ui.main/main!) (:reload-fn |respo-ui.main/reload!) (:version |0.5.2)
:configs $ {} (:init-fn |respo-ui.main/main!) (:reload-fn |respo-ui.main/reload!) (:version |0.5.3)
:modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-router.calcit/ |respo-markdown.calcit/
:entries $ {}
:files $ {}
Expand Down Expand Up @@ -39,7 +39,7 @@
{} $ :class-name (&map:get options :css-value)
let
v $ &map:get item :value
if (string? v) (<> v) v
if (literal? v) (<> v) v
if (some? title)
div ({})
div
Expand Down Expand Up @@ -141,6 +141,10 @@
:border-radius "\"2px"
"\"$0:hover" $ {}
:background-color $ hsl 0 0 98
|literal? $ %{} :CodeEntry (:doc |)
:code $ quote
defn literal? (v)
or (string? v) (tag? v) (number? v) (bool? v)
|style-attributes-title $ %{} :CodeEntry (:doc |)
:code $ quote
defstyle style-attributes-title $ {}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.5.2",
"version": "0.5.3",
"dependencies": {
"@calcit/procs": "^0.8.9",
"copy-text-to-clipboard": "^3.2.0"
Expand Down

0 comments on commit c384144

Please sign in to comment.