Skip to content

Commit

Permalink
add garden-cache doc
Browse files Browse the repository at this point in the history
  • Loading branch information
spacegangster committed Apr 7, 2024
1 parent 8f6cfdb commit dc3e23c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Java 8 or later.
:head-tags [[:meta {:name "custom" :property "stuff"}]]
:stylesheet-async "large-stuff.css" ; injects an async renderer(s)
:script "/app.js" ; async by default
:garden-css [:h1 {:font-size :20px}] ; critical path css
:garden-css [:h1 {:font-size :20px}] ; critical path css (or just inline the whole thing)
:garden-css-cache? true ; uses simple-dimple memoize cache, so only lives in the lifecycle

; seo and meta
:description "Like a notepad but cyberpunk"
Expand Down
2 changes: 1 addition & 1 deletion src/page_renderer/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
Assets
^String :stylesheet-async - stylesheet filename, will be loaded asynchronously by script.
^String :garden-css - data structure for Garden CSS
^Boolean :garden-css-cache? - should Garden CSS be cached.
^Boolean :garden-css-cache? - should Garden CSS be cached. (default: false)
^String :script-sync - script name, will be loaded synchronously
^String :js-module - entry point for JS modules. If you prefer your scripts to be served as modules
^Boolean :skip-cachebusting? - will skip automatic cachebusting if set. Defaults to false.
Expand Down

0 comments on commit dc3e23c

Please sign in to comment.