Releases: sparckles/starfyre
Releases · sparckles/starfyre
v0.7.0 - Improved CLI - merging the --build and --dev flags
v0.6.3 - Add windows and linux support
Full Changelog: v0.6.2...v0.6.3
v0.6.2 - Improve the interface of the CLI
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
v0.5.0 - PYML finalization and documentation update
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
What's Changed
- Add Rust integration by @sansyrox in #7
- Update example by @mklan in #6
- Render and create component fix by @sansyrox in #12
- Makefile: init by @Mikcl in #13
- fix: load the last starfyre if we can by @Mikcl in #16
- Makefile: build starfyre by @Mikcl in #15
- ci: Install ems script by @sansyrox in #17
- fix: remove tool.maturin by @Mikcl in #18
- Tox configuration for python source code. by @Mikcl in #20
- remove package.json by @Mikcl in #21
- Ci/emscripten by @sansyrox in #19
New Contributors
- @sansyrox made their first contribution in #7
- @mklan made their first contribution in #6
- @Mikcl made their first contribution in #13
Full Changelog: https://github.com/sansyrox/starfyre/commits/v0.4.2