Can Cherry or Squint support js like output for Astro? #89
Unanswered
shivekkhurana
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I don't know exactly how astro works, but maybe you could possibly already do this using (js* "---
import Button from './Button.astro';
---")
#jsx [:div ...] |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think instead of making cherry output .astro files the right approach here would be to import from .cljs/cherry files. Cherry is just a producer of ES modules.
|
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I have been following squint and cherry for a while. In the js land, I have also been looking at the meteoric rise of Astro.
The promise of Astro is 0 kb JS bundle, if you don't need interactivity. It can also mixin frameworks.
The only catch is, that you need to write
.astro
files, also called Astro Components.Astro components are JSX like, but they add frontmatter to code:
The
---
seems painful, only if it could be anastroImport([comp1Path, comp2Path])
, and normal js files, squint can be used directly.Does squint or cherry has a hook (or a planned hook) to transform output ? That can help add these pesky separators
---
.Thanks
Beta Was this translation helpful? Give feedback.
All reactions