Skip to content

Releases: sparckles/starfyre

v0.7.0 - Improved CLI - merging the --build and --dev flags

05 Jul 07:51
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.3...v0.7.0

v0.6.3 - Add windows and linux support

01 Jul 07:19
Compare
Choose a tag to compare

v0.6.2 - Improve the interface of the CLI

27 Jun 20:25
Compare
Choose a tag to compare

Full Changelog: v0.6.1...v0.6.2

New interface

Usage: python -m starfyre [OPTIONS]

Options:
  --path TEXT      Path to the project
  --dev BOOLEAN    Start the compilation and generate the build package.
  --build BOOLEAN  Start the build package
  --help           Show this message and exit.

v0.6.1 - re add automated releases

16 Jun 09:16
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.3...v0.6.1

v0.5.0 - PYML finalization and documentation update

15 Jun 17:41
Compare
Choose a tag to compare

Sample Usage

src/init.fyre

from .parent import parent
from .store import store

def mocked_request():
  return "fetched on the server"


async def handle_on_click(e):
  alert("click rendered on client")
  if 1==1:
    print("Hello world")

  current_value = get_parent_signal()
  set_parent_signal(current_value + 1)
  a = await fetch('https://jsonplaceholder.typicode.com/todos/1')
  print(await a.text())
  print("handles on click")
  

<style>
  body {
    background-color: red;
  }
</style>

<pyml>
  <store>
    <parent hello='world'>
        <span onclick={handle_on_click}>
          {[ mocked_request() for i in range(4)]}
        </span>
    </parent>
  </store>
</pyml>


<script>
// this is the optional section 
// for third party scripts and custom js
</script>

src/parent.fyre

import requests

def ssr_request():
  text = "Hello"
  if text != "":
    return text + " from Server Side"
  else:
    return "No response"

<pyml>
    <span>
      <div>
        {ssr_request()}
      </div>
      <b>
        {use_parent_signal()}
      </b>
      <b>
        {get_parent_signal()}
      </b>
      <div> 
        This won't be re-rendered
      </div>
    </span>
</pyml>

v0.4.2 - First automated Release - finalization of PYML syntax

22 Feb 11:53
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/sansyrox/starfyre/commits/v0.4.2