Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 503 Bytes

README.md

File metadata and controls

40 lines (30 loc) · 503 Bytes

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>