Skip to content

0.2.0

Compare
Choose a tag to compare
@davesmith00000 davesmith00000 released this 05 Jul 22:14
· 447 commits to main since this release

Development status: Alpha - expect further breaking changes.

0.1.0 was a simple re-release of Scalm.

This release is the result of actually using Tyrian in anger to build a few (admittedly small/demo/toy) websites.

This release expands the APIs with regard to HTML tags and attributes, and also the usefulness of commands.

Tags & Attributes

Generated a complete list of tags and attributes for view building.

New Cmd Types

  • Emit - no side effect, emit a message.
  • SideEffect - Fire and forget side effect execution
  • Run - Essentially a way to create a RunTask without explicitly making the Task.
  • Combine - Combine two Cmds together (product)
  • Batch - Represents a list of commands to run.

New Built-in Cmds

  • Logger - Simple side effecting cmd that logs to the console.
  • Random - Generate a random value
  • ImageLoader - Given a path, load an image.
  • FileLoader - handles the result of a file input selection (text and images)

Other changes

  • Changed the Http Cmd syntax
  • Swapped Seq for List everywhere