Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(processors): civet #627

Closed
wants to merge 2 commits into from
Closed

feat(processors): civet #627

wants to merge 2 commits into from

Conversation

Shyam-Chen
Copy link

@Shyam-Chen Shyam-Chen commented Mar 6, 2024

Add @danielx/civet.

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR relates to an outstanding issue, so please reference it in your PR, or create an explanatory one for discussion. In many cases features are absent for a reason.
  • This message body should clearly illustrate what problems it solves. If there are related issues, remember to reference them.
  • Ideally, include a test that fails without this PR but passes with it. PRs will only be merged once they pass CI. (Remember to run pnpm lint!)

Tests

  • Run the tests with npm test or pnpm test

image

image

<script lang="civet">
  count .= $state 0

  function increment: void
    count += 1
</script>

<template lang="pug">
  button.XButton(onclick!="{() => increment()}").
    clicks: {count}
</template>

<style lang="styl">
  .XButton
    color #f96743
</style>
<script>
  let count = $state(0);

  function increment() {
    count += 1;
  }
</script>

<button class="XButton" onclick="{() => increment()}">
  clicks: {count}
</button>

<style>
  .XButton {
    color: #f96743;
  }
</style>

@Shyam-Chen
Copy link
Author

duplicate of #600

@Shyam-Chen Shyam-Chen closed this Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant