You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move themes/default/common.bb to themes/default/src/com/platypub/themes/common.clj. Make render-site and render-email use require instead of load-file. Make a deps.edn file with {:paths ["src" "resources"]} for the contents. Move subscribe.js, email.css and any other files that other themes might want to use to themes/default/resources/com/platypub/themes/default/. Update render-site and render-email accordingly.
Then custom themes can add the default theme as a dependency and reuse anything in common.clj or resources by depending on com.github.jacobobryant/platypub {:sha "..." :deps/root "themes/default"}. (Need to figure out the right way to do that--if custom themes put that in deps.edn, will it apply when we run render-site and render-email? Do we need to change the way Platypub calls theme code? If needed we can always turn render-site and render-email into one-line bash scripts that call bb with the appropriate dependencies and commands)
The text was updated successfully, but these errors were encountered:
Move
themes/default/common.bb
tothemes/default/src/com/platypub/themes/common.clj
. Makerender-site
andrender-email
userequire
instead ofload-file
. Make a deps.edn file with{:paths ["src" "resources"]}
for the contents. Movesubscribe.js
,email.css
and any other files that other themes might want to use tothemes/default/resources/com/platypub/themes/default/
. Updaterender-site
andrender-email
accordingly.Then custom themes can add the default theme as a dependency and reuse anything in
common.clj
orresources
by depending oncom.github.jacobobryant/platypub {:sha "..." :deps/root "themes/default"}
. (Need to figure out the right way to do that--if custom themes put that indeps.edn
, will it apply when we runrender-site
andrender-email
? Do we need to change the way Platypub calls theme code? If needed we can always turnrender-site
andrender-email
into one-line bash scripts that callbb
with the appropriate dependencies and commands)The text was updated successfully, but these errors were encountered: