svelte-civet Svelte Themes

Svelte Civet

svelte-preprocess for civet (WIP)

svelte-civet

svelte-preprocess for civet (WIP)

Install

pnpm i -D svlete-civet @danielx/civet

How to use

// svelte.config.js
const config = {
  ...
  preprocess: [civet(), ...],
  ...
}
<!-- ...svelte -->
<script lang="civet">
  ...
</script>

For Example

<script lang="civet">
  let hello: string = "hel" |> & + "lo";

  $: hello2 = hello + hello;
</script>

<h1>{hello}</h1>
<h1>{hello2}</h1>

Top categories

Loading Svelte Themes